Simplify signature of Container::serde_path

This commit is contained in:
David Tolnay
2019-04-03 09:18:45 -07:00
parent 2f1945eaf2
commit f3c6b9f05a
+1 -1
View File
@@ -687,7 +687,7 @@ impl Container {
self.serde_path.as_ref()
}
pub fn serde_path<'a>(&'a self) -> Cow<'a, syn::Path> {
pub fn serde_path(&self) -> Cow<syn::Path> {
self.custom_serde_path()
.map(Cow::Borrowed)
.unwrap_or_else(|| Cow::Owned(parse_quote!(_serde)))