mirror of
https://github.com/topjohnwu/cxx.git
synced 2025-02-16 06:07:39 +00:00
Resolve clippy single_match lint
This commit is contained in:
parent
f878e591a6
commit
4e7123f26f
10
gen/write.rs
10
gen/write.rs
@ -408,12 +408,10 @@ fn write_cxx_function_shim(out: &mut OutFile, efn: &ExternFn, types: &Types) {
|
||||
write_type(out, &arg.ty);
|
||||
}
|
||||
write!(out, ")");
|
||||
match &efn.receiver {
|
||||
Some(Receiver {
|
||||
mutability: None,
|
||||
ident: _,
|
||||
}) => write!(out, " const"),
|
||||
_ => {}
|
||||
if let Some(receiver) = &efn.receiver {
|
||||
if receiver.mutability.is_none() {
|
||||
write!(out, " const");
|
||||
}
|
||||
}
|
||||
write!(out, " = ");
|
||||
match &efn.receiver {
|
||||
|
Loading…
x
Reference in New Issue
Block a user