Skip to content

Commit f28976f

Browse files
eshattowE Shattow
authored andcommitted
skeleton: mod fix Clippy warning on comparison of path with non-path
Compare path object with path object to resolve Clippy warning.
1 parent 60e92d5 commit f28976f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/skeleton/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ fn ignore_all_members_except(
331331
) {
332332
let workspace_toml = manifests
333333
.iter_mut()
334-
.find(|manifest| manifest.relative_path == std::path::PathBuf::from("Cargo.toml"));
334+
.find(|manifest| manifest.relative_path == Path::new("Cargo.toml"));
335335

336336
if let Some(workspace) = workspace_toml.and_then(|toml| toml.contents.get_mut("workspace")) {
337337
if let Some(members) = workspace.get_mut("members") {

0 commit comments

Comments
 (0)