mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-12-12 14:17:45 +00:00
chore: fix rust 1.74 clippy lints (#5578)
This commit is contained in:
parent
ac4a839103
commit
64ca07910d
@ -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;
|
||||
|
@ -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"
|
||||
))
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user