review changes

longer names for RPC generics and reduced dependency on macros in the server.
This commit is contained in:
Nika Layzell
2022-06-27 20:03:56 -04:00
parent f28dfdf1c7
commit 64a7d57046
3 changed files with 127 additions and 131 deletions

View File

@@ -969,13 +969,17 @@ impl Punct {
if !LEGAL_CHARS.contains(&ch) {
panic!("unsupported character `{:?}`", ch);
}
Punct(bridge::Punct { ch, joint: spacing == Spacing::Joint, span: Span::call_site().0 })
Punct(bridge::Punct {
ch: ch as u8,
joint: spacing == Spacing::Joint,
span: Span::call_site().0,
})
}
/// Returns the value of this punctuation character as `char`.
#[stable(feature = "proc_macro_lib2", since = "1.29.0")]
pub fn as_char(&self) -> char {
self.0.ch
self.0.ch as char
}
/// Returns the spacing of this punctuation character, indicating whether it's immediately