Update Attr structs to hold symbols

This commit is contained in:
David Tolnay
2019-07-31 21:02:49 -07:00
parent 735e56c26f
commit fb1cacc10e
2 changed files with 54 additions and 54 deletions
+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");