Skip to content

Commit cb79cf0

Browse files
committed
[assembler] Clippy: enable, fix inconsistent_struct_constructor.
1 parent ac6c9da commit cb79cf0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

assembler/src/asmlib/glyph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ impl<T> From<(Script, T)> for Elevated<T> {
160160

161161
/// Create an instance of [`Elevated<T>`].
162162
pub(crate) fn elevate<T>(script: Script, inner: T) -> Elevated<T> {
163-
Elevated { script, inner }
163+
Elevated { inner, script }
164164
}
165165

166166
/// A character which might appear in source code.

assembler/src/asmlib/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#![allow(clippy::match_wild_err_arm)] // fix later
2323
#![allow(clippy::verbose_bit_mask)] // fix later
2424
#![allow(clippy::redundant_closure_for_method_calls)] // fix later
25-
#![allow(clippy::inconsistent_struct_constructor)] // fix soon
2625
#![allow(clippy::manual_assert)] // fix soon
2726
#![allow(clippy::if_not_else)] // fix soon
2827
#![allow(clippy::doc_markdown)] // fix soon
@@ -33,6 +32,7 @@
3332
#![allow(clippy::match_wildcard_for_single_variants)] // fix soon
3433
#![allow(clippy::trivially_copy_pass_by_ref)] // fix soon
3534
#![allow(clippy::unnecessary_wraps)] // fix soon
35+
#![warn(clippy::inconsistent_struct_constructor)] // fix soon
3636

3737
mod ast;
3838
mod collections;

0 commit comments

Comments
 (0)