misc: clippy lint fixes
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
use std::{
|
||||
fs,
|
||||
path::{self, Path},
|
||||
};
|
||||
use std::{fs, path::Path};
|
||||
|
||||
use common::prelude::{Instruction, Register};
|
||||
use common::prelude::*;
|
||||
|
||||
use crate::{
|
||||
assembler::{
|
||||
@@ -48,7 +45,7 @@ pub fn parse(src: String) -> Vec<Node> {
|
||||
|
||||
let tokens = lex(src);
|
||||
|
||||
let mut id = 0;
|
||||
let _id = 0;
|
||||
let mut idstack = Vec::<u32>::new();
|
||||
|
||||
nodes.extend(vec![
|
||||
@@ -290,7 +287,7 @@ fn lex(src: String) -> Vec<BfToken> {
|
||||
.collect()
|
||||
}
|
||||
|
||||
fn create_symbol(id: u32) -> Symbol {
|
||||
fn _create_symbol(id: u32) -> Symbol {
|
||||
Symbol {
|
||||
name: format!("label_{}", id),
|
||||
module: Module::Resolved(0),
|
||||
|
||||
Reference in New Issue
Block a user