Commit b582e6e
Resolve clippy warnings
```
[nix-shell:~/Development/TX-2-simulator]$ cargo clippy --workspace
Compiling psm v0.1.26
Checking stacker v0.1.21
Checking chumsky v1.0.0-alpha.8
Checking assembler v0.1.0 (/home/aryehh/Development/TX-2-simulator/assembler)
warning: the following explicit lifetimes could be elided: 's
--> assembler/src/asmlib/ast.rs:1831:38
|
1831 | pub(crate) fn build_binary_block<'s, R: RcUpdater>(
| ^^
...
1841 | body: &Source<'s>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
1831 ~ pub(crate) fn build_binary_block<R: RcUpdater>(
1832 | &self,
...
1840 | final_symbols: &mut FinalSymbolTable,
1841 ~ body: &Source<'_>,
|
warning: the following explicit lifetimes could be elided: 's
--> assembler/src/asmlib/symtab.rs:443:57
|
443 | pub(super) fn record_undefined_symbol_or_return_failure<'s>(
| ^^
444 | source_file_body: &Source<'s>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
443 ~ pub(super) fn record_undefined_symbol_or_return_failure(
444 ~ source_file_body: &Source<'_>,
|
warning: `assembler` (lib) generated 2 warnings (run `cargo clippy --fix --lib -p assembler` to apply 2 suggestions)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.82s
```1 parent 03de447 commit b582e6e
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1828 | 1828 | | |
1829 | 1829 | | |
1830 | 1830 | | |
1831 | | - | |
| 1831 | + | |
1832 | 1832 | | |
1833 | 1833 | | |
1834 | 1834 | | |
| |||
1838 | 1838 | | |
1839 | 1839 | | |
1840 | 1840 | | |
1841 | | - | |
| 1841 | + | |
1842 | 1842 | | |
1843 | 1843 | | |
1844 | 1844 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
444 | | - | |
| 443 | + | |
| 444 | + | |
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| |||
0 commit comments