git: 94859b453c20 - main - games/veloren: Fix build with rust 1.59.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 09 Mar 2022 16:42:13 UTC
The branch main has been updated by mikael: URL: https://cgit.FreeBSD.org/ports/commit/?id=94859b453c20464c165432c82d726b5c90a99633 commit 94859b453c20464c165432c82d726b5c90a99633 Author: Mikael Urankar <mikael@FreeBSD.org> AuthorDate: 2022-03-09 16:38:41 +0000 Commit: Mikael Urankar <mikael@FreeBSD.org> CommitDate: 2022-03-09 16:40:09 +0000 games/veloren: Fix build with rust 1.59.0 error: format argument must be a string literal --> voxygen/src/hud/diary.rs:1263:49 | 1263 | unknown => unreachable!(unknown), | ^^^^^^^ Upstream PR: https://gitlab.com/veloren/veloren/-/issues/1493 Approved by: portmgr (build fix blanket) --- games/veloren/files/patch-voxygen_src_hud_diary.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/games/veloren/files/patch-voxygen_src_hud_diary.rs b/games/veloren/files/patch-voxygen_src_hud_diary.rs new file mode 100644 index 000000000000..f43a8d6e8cac --- /dev/null +++ b/games/veloren/files/patch-voxygen_src_hud_diary.rs @@ -0,0 +1,13 @@ +https://gitlab.com/veloren/veloren/-/issues/1493 + +--- voxygen/src/hud/diary.rs.orig 2022-03-08 09:15:13 UTC ++++ voxygen/src/hud/diary.rs +@@ -1260,7 +1260,7 @@ impl<'a> Widget for Diary<'a> { + (None, None) => String::new(), + } + }, +- unknown => unreachable!(unknown), ++ unknown => unreachable!("unknown"), + }; + + let mut number = Text::new(&value)