Skip to content

Commit

Permalink
fix Clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jaisnan committed Mar 5, 2024
1 parent 192c4a9 commit 7d5a400
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion kani-driver/src/call_cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::args::VerificationArgs;
use crate::call_single_file::to_rustc_arg;
use crate::project::Artifact;
use crate::session::KaniSession;
use crate::{session, util};
use crate::{util};
use anyhow::{bail, Context, Result};
use cargo_metadata::diagnostic::{Diagnostic, DiagnosticLevel};
use cargo_metadata::{Message, Metadata, MetadataCommand, Package, Target};
Expand Down
4 changes: 2 additions & 2 deletions kani-driver/src/concrete_playback/playback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ fn cargo_test(install: &InstallType, args: CargoPlaybackArgs) -> Result<()> {
}
InstallType::Release(kani_dir) => {
let cargo_path = kani_dir.join("toolchain").join("bin").join("cargo");
let cmd = Command::new(cargo_path);
cmd

Command::new(cargo_path)
}
};

Expand Down
4 changes: 2 additions & 2 deletions kani-driver/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ impl KaniSession {
}
InstallType::Release(kani_dir) => {
let cargo_path = kani_dir.join("toolchain").join("bin").join("cargo");
let cmd = Command::new(cargo_path);
cmd

Command::new(cargo_path)
}
};

Expand Down
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,17 @@ fn parse_args(args: Vec<OsString>) -> ArgsResult {
let use_local_toolchain = matches.value_of_os("use-local-toolchain").map(OsString::from);
let use_local_bundle = matches.value_of_os("use-local-bundle").map(OsString::from);
ArgsResult::ExplicitSetup {
use_local_bundle: use_local_bundle,
use_local_toolchain: use_local_toolchain,
use_local_bundle ,
use_local_toolchain,
}
} else if let Some(matches) = matches.subcommand_matches("kani") {
if let Some(matches) = matches.subcommand_matches("setup") {
let use_local_toolchain =
matches.value_of_os("use-local-toolchain").map(OsString::from);
let use_local_bundle = matches.value_of_os("use-local-bundle").map(OsString::from);
ArgsResult::ExplicitSetup {
use_local_bundle: use_local_bundle,
use_local_toolchain: use_local_toolchain,
use_local_bundle,
use_local_toolchain,
}
} else {
ArgsResult::Default
Expand Down

0 comments on commit 7d5a400

Please sign in to comment.