compiler: clippy::complexity fixes
This commit is contained in:
parent
b6a23b8537
commit
86a7fc840f
23 changed files with 62 additions and 95 deletions
|
@ -694,18 +694,14 @@ impl<Cx: TypeCx> Clone for Constructor<Cx> {
|
|||
fn clone(&self) -> Self {
|
||||
match self {
|
||||
Constructor::Struct => Constructor::Struct,
|
||||
Constructor::Variant(idx) => Constructor::Variant(idx.clone()),
|
||||
Constructor::Variant(idx) => Constructor::Variant(*idx),
|
||||
Constructor::Ref => Constructor::Ref,
|
||||
Constructor::Slice(slice) => Constructor::Slice(slice.clone()),
|
||||
Constructor::Slice(slice) => Constructor::Slice(*slice),
|
||||
Constructor::UnionField => Constructor::UnionField,
|
||||
Constructor::Bool(b) => Constructor::Bool(b.clone()),
|
||||
Constructor::IntRange(range) => Constructor::IntRange(range.clone()),
|
||||
Constructor::F32Range(lo, hi, end) => {
|
||||
Constructor::F32Range(lo.clone(), hi.clone(), end.clone())
|
||||
}
|
||||
Constructor::F64Range(lo, hi, end) => {
|
||||
Constructor::F64Range(lo.clone(), hi.clone(), end.clone())
|
||||
}
|
||||
Constructor::Bool(b) => Constructor::Bool(*b),
|
||||
Constructor::IntRange(range) => Constructor::IntRange(*range),
|
||||
Constructor::F32Range(lo, hi, end) => Constructor::F32Range(lo.clone(), *hi, *end),
|
||||
Constructor::F64Range(lo, hi, end) => Constructor::F64Range(lo.clone(), *hi, *end),
|
||||
Constructor::Str(value) => Constructor::Str(value.clone()),
|
||||
Constructor::Opaque(inner) => Constructor::Opaque(inner.clone()),
|
||||
Constructor::Or => Constructor::Or,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue