Skip to content

Commit b857c18

Browse files
Chore: Drop unused verbosity param 'v' from run and all call sites.
1 parent e573809 commit b857c18

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

compiler/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fn parse_args() -> (String, usize, bool, bool) {
2020
(p, if v > 0 { v + 2 } else { 0 }, args.contains(&"-q".into()), args.contains(&"--sandbox".into()))
2121
}
2222

23-
fn run(path: &str, v: usize, q: bool, sandbox: bool) -> Result<(), String> {
23+
fn run(path: &str, _q: bool, sandbox: bool) -> Result<(), String> {
2424
let src = if path.ends_with(".py") {
2525
fs::read_to_string(path).map_err(|e| format!("io: cannot access '{}' because {}", path, e))?
2626
} else {
@@ -60,7 +60,7 @@ fn main() {
6060
let default_level = if q { "error" } else { "info" };
6161
env_logger::Builder::from_env(env_logger::Env::default().default_filter_or(default_level)).init();
6262

63-
if let Err(e) = run(&p, v, q, sandbox) {
63+
if let Err(e) = run(&p, q, sandbox) {
6464
error!("process terminated: {}", e);
6565
exit(1);
6666
}

0 commit comments

Comments
 (0)