mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-14 01:11:01 +00:00
Resolve option_map_unwrap_or_else lint
This commit is contained in:
@@ -689,8 +689,7 @@ impl Container {
|
|||||||
|
|
||||||
pub fn serde_path(&self) -> Cow<syn::Path> {
|
pub fn serde_path(&self) -> Cow<syn::Path> {
|
||||||
self.custom_serde_path()
|
self.custom_serde_path()
|
||||||
.map(Cow::Borrowed)
|
.map_or_else(|| Cow::Owned(parse_quote!(_serde)), Cow::Borrowed)
|
||||||
.unwrap_or_else(|| Cow::Owned(parse_quote!(_serde)))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user