Minor cleanups.
- Reduce some function exposure. - Fix some comment formatting.
This commit is contained in:
parent
49908b4d90
commit
b35e576657
5 changed files with 14 additions and 11 deletions
|
@ -478,7 +478,7 @@ impl<'parent, 'a> SubdiagnosticDeriveVariantBuilder<'parent, 'a> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn into_tokens(&mut self) -> Result<TokenStream, DiagnosticDeriveError> {
|
||||
pub(crate) fn into_tokens(&mut self) -> Result<TokenStream, DiagnosticDeriveError> {
|
||||
let kind_slugs = self.identify_kind()?;
|
||||
if kind_slugs.is_empty() {
|
||||
if self.is_enum {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue