Skip to content

Commit

Permalink
Simplify signature of Container::serde_path
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Apr 3, 2019
1 parent 2f1945e commit f3c6b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serde_derive/src/internals/attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit f3c6b9f

Please sign in to comment.