diff --git a/src/cmd/dol.rs b/src/cmd/dol.rs index 37d99f9..40e41fa 100644 --- a/src/cmd/dol.rs +++ b/src/cmd/dol.rs @@ -187,7 +187,7 @@ mod path_slash_serde_option { pub fn deserialize<'de, D>(deserializer: D) -> Result, D::Error> where D: Deserializer<'de> { - Ok(Option::deserialize(deserializer)?.map(|s: String| PathBuf::from_slash(s))) + Ok(Option::deserialize(deserializer)?.map(PathBuf::from_slash::)) } }