mirror of
https://github.com/veeso/termscp.git
synced 2026-09-26 22:11:26 -07:00
style: linter
This commit is contained in:
+1
-3
@@ -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![];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user