mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-15 17:51:02 +00:00
Update Attr structs to hold symbols
This commit is contained in:
@@ -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