Skip to content

Commit dd1388a

Browse files
committed
[assembler] Clippy: enable and fix must_use_candidate.
1 parent f6ae87a commit dd1388a

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

assembler/src/asmlib/driver.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ pub struct BinaryChunk {
197197
}
198198

199199
impl BinaryChunk {
200+
#[must_use]
200201
pub fn is_empty(&self) -> bool {
201202
self.words.is_empty()
202203
}

assembler/src/asmlib/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![deny(unreachable_pub)]
22
#![deny(unsafe_code)]
3+
#![warn(clippy::must_use_candidate)]
34

45
mod ast;
56
mod collections;

assembler/src/asmlib/readerleader.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ fn test_bit_index() {
180180
/// 28, when the `☛☛PUNCH` directive includes a start address. This
181181
/// may in fact be the case shown in the diagram on [page
182182
/// 6-23](https://archive.org/details/tx-2-users-handbook-nov-63/page/n175/mode/1up).
183+
#[must_use]
183184
pub fn reader_leader() -> Vec<Unsigned36Bit> {
184185
([
185186
// These instructions are taken from the middle column of

0 commit comments

Comments
 (0)