Update to syn/quote 1.0

This commit is contained in:
David Tolnay
2019-07-31 21:09:14 -07:00
parent 8ad6ae71c6
commit 3ea85a28cf
7 changed files with 160 additions and 142 deletions
+6
View File
@@ -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)