We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21c8053 commit 6abe6ccCopy full SHA for 6abe6cc
src/cmd/dol.rs
@@ -187,7 +187,7 @@ mod path_slash_serde_option {
187
188
pub fn deserialize<'de, D>(deserializer: D) -> Result<Option<PathBuf>, D::Error>
189
where D: Deserializer<'de> {
190
- Ok(Option::deserialize(deserializer)?.map(|s: String| PathBuf::from_slash(s)))
+ Ok(Option::deserialize(deserializer)?.map(PathBuf::from_slash::<String>))
191
}
192
193
0 commit comments