mirror of
https://github.com/topjohnwu/cxx.git
synced 2025-02-22 00:54:33 +00:00
Work around clippy needless_update lint on attrs::Parser
This commit is contained in:
parent
2680923a7e
commit
d25033c28e
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user