We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e967ac6 commit de64609Copy full SHA for de64609
2 files changed
src/node/mod.rs
@@ -136,8 +136,7 @@ impl Node {
136
std::path::Component::CurDir => {}
137
_ => {
138
return Err(anyhow!(
139
- "Unexpected non-normal path segment in class lookup: {:?}",
140
- d
+ "Unexpected non-normal path segment in class lookup: {d:?}",
141
))
142
}
143
src/node/nodeinfo.rs
@@ -98,8 +98,10 @@ impl NodeInfoMeta {
98
self.parts
99
.iter()
100
.map(|s| {
101
- s.to_str()
102
- .ok_or(anyhow!("Unable to convert path segment {s:?} to a string"))
+ s.to_str().ok_or(anyhow!(
+ "Unable to convert path segment {} to a string",
103
+ s.display()
104
+ ))
105
})
106
.collect::<Result<Vec<&str>, _>>()?
107
};
0 commit comments