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:
parent
ac4a839103
commit
64ca07910d
@ -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;
|
||||||
|
@ -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"
|
||||||
|
))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user