No need to clone selection

This commit is contained in:
Arijit Basu 2021-04-09 10:56:39 +05:30
parent b50ce48264
commit a68fec0c11
No known key found for this signature in database
GPG Key ID: 7D7BF809E7378863

View File

@ -1331,7 +1331,6 @@ impl App {
pub fn refresh_selection(mut self) -> Result<Self> {
self.selection = self
.selection
.clone()
.into_iter()
.filter(|n| PathBuf::from(&n.absolute_path).exists())
.collect();