Skip to content

Commit

Permalink
chore: fix rust 1.74 clippy lints (starship#5578)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkna committed Nov 29, 2023
1 parent ac4a839 commit 64ca079
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modules/c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 3 additions & 2 deletions src/modules/pulumi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
))
);
}

Expand Down

0 comments on commit 64ca079

Please sign in to comment.