Skip to content

Commit 4d55551

Browse files
committed
chore: fixed warns
1 parent feb51e6 commit 4d55551

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

compiler/compiler_main/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::path::{Path, PathBuf};
1+
use std::path::PathBuf;
22

33
use clap::{Parser, Subcommand, ValueEnum};
44

compiler/compiler_main/src/cmds/check.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ pub fn run_check(path: String, layer: IRLayer) {
1313

1414
match layer {
1515
IRLayer::HIR => {
16-
let hir = run_astoir_hir(ast.unwrap());
16+
let _hir = run_astoir_hir(ast.unwrap());
1717
quietlyquit_if_errors!();
1818
}
1919

2020
IRLayer::MIR => {
21-
let mir = run_astoir_mir(ast.unwrap());
21+
let _mir = run_astoir_mir(ast.unwrap());
2222
quietlyquit_if_errors!();
2323
}
2424
}

compiler/compiler_main/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::{
22
fs,
3-
path::{Path, PathBuf},
3+
path::PathBuf,
44
time::Instant,
55
};
66

@@ -43,7 +43,7 @@ fn main() {
4343
out,
4444
bridge,
4545
format,
46-
linker,
46+
linker: _,
4747
input,
4848
} => {
4949
let needs_dir = input.len() > 1 && format != OutputFormat::Executable;

0 commit comments

Comments
 (0)