Update to syn/quote 1.0

This commit is contained in:
David Tolnay committed 2019-08-16 11:31:15 -07:00
1 parent 8ad6ae71c6
commit 3ea85a28cf
7 files changed
+160 -142

No files matched your search

+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)