chore: fix new clippy lints (#4557)

This commit is contained in:
David Knaack
2022-11-05 12:40:46 +01:00
committed by GitHub
parent 9b64f518c9
commit 6e38683c89
51 changed files with 324 additions and 324 deletions
+2 -2
View File
@@ -631,7 +631,7 @@ fn get_remote_repository_info(
let branch_name = branch_name?;
let branch = repository
.branch_remote_ref(branch_name)
.and_then(|r| r.ok())
.and_then(std::result::Result::ok)
.map(|r| r.shorten().to_string());
let name = repository
.branch_remote_name(branch_name)
@@ -849,7 +849,7 @@ mod tests {
let tmp_dir = tempfile::TempDir::new()?;
let path = tmp_dir.path().join("a/xxx/yyy");
fs::create_dir_all(&path)?;
fs::create_dir_all(path)?;
// Set up a mock symlink
let path_actual = tmp_dir.path().join("a/xxx");