Skip to content

Commit fa61af3

Browse files
committed
[assembler] Clippy: enable, fix unused_self.
1 parent 98b7e8f commit fa61af3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

assembler/src/asmlib/ast.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,6 +1014,9 @@ impl SymbolOrLiteral {
10141014
_implicit_symtab: &mut ImplicitSymbolTable,
10151015
_rc_allocator: &mut R,
10161016
) -> Result<(), RcWordAllocationFailure> {
1017+
// SymbolOrliteral doesn't contain anything that would reserve
1018+
// RC-words, so there is nothing to do here.
1019+
let _ = self; // placate the unused_self Clippy lint.
10171020
Ok(())
10181021
}
10191022
}
@@ -1676,6 +1679,7 @@ impl TaggedProgramInstruction {
16761679
}
16771680

16781681
fn emitted_word_count(&self) -> Unsigned18Bit {
1682+
let _ = self;
16791683
Unsigned18Bit::ONE
16801684
}
16811685

assembler/src/asmlib/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#![allow(clippy::if_not_else)] // fix soon
2626
#![allow(clippy::doc_markdown)] // fix soon
2727
#![allow(clippy::needless_pass_by_value)] // fix soon
28-
#![allow(clippy::unused_self)] // fix soon
2928
#![allow(clippy::match_wildcard_for_single_variants)] // fix soon
3029
#![allow(clippy::trivially_copy_pass_by_ref)] // fix soon
3130
#![allow(clippy::unnecessary_wraps)] // fix soon

0 commit comments

Comments
 (0)