Merge pull request #335518 from jonathan-conder/neovim-gtk-collect-box

neovim-gtk: fix build with rustc 1.80
This commit is contained in:
Aleksana 2024-08-18 16:21:28 +08:00 committed by GitHub
commit 0eff91a668
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff -ru a/src/ui.rs b/src/ui.rs
--- a/src/ui.rs
+++ b/src/ui.rs
@@ -385,7 +386,7 @@
files_list
.iter()
.map(|f| misc::escape_filename(f))
- .collect::<Box<_>>()
+ .collect::<Box<[_]>>()
.join(" ")
));
} else {

View File

@ -26,6 +26,8 @@ rustPlatform.buildRustPackage rec {
buildInputs = [ gdk-pixbuf gtk4 pango vte-gtk4 ];
patches = [ ./collect-box.patch ];
postInstall = ''
make PREFIX=$out install-resources
'';