mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-30 08:37:56 +00:00
Update to syn/quote 1.0
This commit is contained in:
@@ -54,6 +54,12 @@ impl PartialEq<Symbol> for Path {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> PartialEq<Symbol> for &'a Path {
|
||||
fn eq(&self, word: &Symbol) -> bool {
|
||||
self.is_ident(word.0)
|
||||
}
|
||||
}
|
||||
|
||||
impl Display for Symbol {
|
||||
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
|
||||
formatter.write_str(self.0)
|
||||
|
||||
Reference in New Issue
Block a user