1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-04 19:03:38 +00:00

chore: fix rust 1.74 clippy lints (#5578)

This commit is contained in:
David Knaack 2023-11-29 07:27:47 +01:00 committed by GitHub
parent ac4a839103
commit 64ca07910d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -47,7 +47,7 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
} else { } else {
return None; return None;
}; };
Some(c_compiler).map(Cow::Borrowed).map(Ok) Some(Ok(Cow::Borrowed(c_compiler)))
} }
"version" => { "version" => {
let c_compiler_info = &c_compiler_info.deref().as_ref()?.stdout; let c_compiler_info = &c_compiler_info.deref().as_ref()?.stdout;

View File

@ -285,8 +285,9 @@ mod tests {
let project_file = PathBuf::from("/hello/Pulumi.yaml"); let project_file = PathBuf::from("/hello/Pulumi.yaml");
assert_eq!( assert_eq!(
get_pulumi_workspace(&context, name, &project_file), get_pulumi_workspace(&context, name, &project_file),
Some("/home/sweet/home/.pulumi/workspaces/foobar-test-workspace.json") Some(PathBuf::from(
.map(PathBuf::from) "/home/sweet/home/.pulumi/workspaces/foobar-test-workspace.json"
))
); );
} }