diff --git a/src/main.rs b/src/main.rs index 0b7a0db..057e357 100644 --- a/src/main.rs +++ b/src/main.rs @@ -577,6 +577,8 @@ where if login_entries.is_empty() { return Err(anyhow!("No matching logins found")); } + // TODO: migrate to let-chain after upgrading to Rust 2024 + #[allow(clippy::unnecessary_unwrap)] if login_entries.len() > 1 && git_req.username.is_some() { let username = git_req.username.as_ref().unwrap(); let login_entries_name_matches: Vec<_> = login_entries diff --git a/src/utils/callers.rs b/src/utils/callers.rs index 7c3abbc..fd2ba49 100644 --- a/src/utils/callers.rs +++ b/src/utils/callers.rs @@ -81,6 +81,8 @@ impl CurrentCaller { { return false; } + // TODO: migrate to let-chain after upgrading to Rust 2024 + #[allow(clippy::unnecessary_unwrap)] if caller.canonicalize && self.canonical_path.is_some() { let canonical_caller = PathBuf::from(&caller.path).canonicalize(); if canonical_caller