mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-12-02 02:37:07 +00:00
Update Attr structs to hold symbols
This commit is contained in:
1 parent
735e56c26f
commit
fb1cacc10e
2 files changed
+54
-54
No files matched your search
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user