1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-04 02:48:25 +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 {
return None;
};
Some(c_compiler).map(Cow::Borrowed).map(Ok)
Some(Ok(Cow::Borrowed(c_compiler)))
}
"version" => {
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");
assert_eq!(
get_pulumi_workspace(&context, name, &project_file),
Some("/home/sweet/home/.pulumi/workspaces/foobar-test-workspace.json")
.map(PathBuf::from)
Some(PathBuf::from(
"/home/sweet/home/.pulumi/workspaces/foobar-test-workspace.json"
))
);
}