We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 127e3d6 commit bb84bbeCopy full SHA for bb84bbe
‎src/main.rs
@@ -1,4 +1,3 @@
1
-#![feature(string_remove_matches)]
2
#![allow(non_upper_case_globals)]
3
#![allow(clippy::arc_with_non_send_sync)]
4
‎src/pages.rs
@@ -1022,8 +1022,7 @@ fn on_refreshkeyring_btn_clicked(_: >k::Button) {
1022
.into_iter()
1023
.filter(|pkg| pkg.name() != "gnome-keyring" && pkg.name() != "python-keyring")
1024
.fold(String::new(), |mut output, pkg| {
1025
- let mut pkgname = String::from(pkg.name());
1026
- pkgname.remove_matches("-keyring");
+ let pkgname = str::replace(pkg.name(), "-keyring", "");
1027
let _ = write!(output, "{pkgname} ");
1028
output
1029
});
0 commit comments