clippy fix

This commit is contained in:
Luke Street 2023-09-05 17:31:19 -04:00
parent 21c80537ac
commit 6abe6cc277
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ mod path_slash_serde_option {
pub fn deserialize<'de, D>(deserializer: D) -> Result<Option<PathBuf>, D::Error> pub fn deserialize<'de, D>(deserializer: D) -> Result<Option<PathBuf>, D::Error>
where D: Deserializer<'de> { where D: Deserializer<'de> {
Ok(Option::deserialize(deserializer)?.map(|s: String| PathBuf::from_slash(s))) Ok(Option::deserialize(deserializer)?.map(PathBuf::from_slash::<String>))
} }
} }