chore: apply recommendations from clippy
This commit is contained in:
parent
cec55dafd7
commit
8e0f1c4a09
56 changed files with 720 additions and 824 deletions
|
|
@ -42,7 +42,7 @@ impl AppListConfig {
|
|||
}
|
||||
|
||||
pub fn remove_pinned(&mut self, id: &str, config: &Config) {
|
||||
if let Some(pos) = self.favorites.iter().position(|e| e == &id) {
|
||||
if let Some(pos) = self.favorites.iter().position(|e| e == id) {
|
||||
self.favorites.remove(pos);
|
||||
let _ = self.write_entry(config);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue