Update Attr structs to hold symbols

This commit is contained in:
David Tolnay committed 2019-07-31 21:06:36 -07:00
1 parent 735e56c26f
commit fb1cacc10e
2 files changed
+54 -54

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ use std::fmt::{self, Display};
use syn::{Ident, Path};
#[derive(Copy, Clone)]
pub struct Symbol(pub &'static str);
pub struct Symbol(&'static str);
pub const ALIAS: Symbol = Symbol("alias");
pub const BORROW: Symbol = Symbol("borrow");