Skip to content

Commit bb84bbe

Browse files
committed
🚧 pages: dont use nightly feature
1 parent 127e3d6 commit bb84bbe

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

‎src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(string_remove_matches)]
21
#![allow(non_upper_case_globals)]
32
#![allow(clippy::arc_with_non_send_sync)]
43

‎src/pages.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,8 +1022,7 @@ fn on_refreshkeyring_btn_clicked(_: &gtk::Button) {
10221022
.into_iter()
10231023
.filter(|pkg| pkg.name() != "gnome-keyring" && pkg.name() != "python-keyring")
10241024
.fold(String::new(), |mut output, pkg| {
1025-
let mut pkgname = String::from(pkg.name());
1026-
pkgname.remove_matches("-keyring");
1025+
let pkgname = str::replace(pkg.name(), "-keyring", "");
10271026
let _ = write!(output, "{pkgname} ");
10281027
output
10291028
});

0 commit comments

Comments
 (0)