Work around clippy needless_update lint on attrs::Parser

This commit is contained in:
David Tolnay 2020-12-21 16:24:19 -08:00
parent 2680923a7e
commit d25033c28e
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -14,6 +14,11 @@ pub struct Parser<'a> {
pub namespace: Option<&'a mut Namespace>,
pub cxx_name: Option<&'a mut Option<Ident>>,
pub rust_name: Option<&'a mut Option<Ident>>,
// Suppress clippy needless_update lint ("struct update has no effect, all
// the fields in the struct have already been specified") when preemptively
// writing `..Default::default()`.
pub(crate) _more: (),
}
pub(super) fn parse(cx: &mut Errors, attrs: &[Attribute], mut parser: Parser) {