style: linter

This commit is contained in:
Christian Visintin
2026-04-19 01:54:46 +05:30
parent fe424107e9
commit 9f3df1a79a
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -41,9 +41,7 @@ impl TryFrom<&Args> for RemoteArgs {
(_, _) => Err("Too many arguments".to_string()),
}?;
// parse bookmark first
let last_item_index = (args.bookmark.len() + args.positional.len())
.checked_sub(1)
.unwrap_or_default();
let last_item_index = (args.bookmark.len() + args.positional.len()).saturating_sub(1);
let mut hosts = vec![];