Skip to content

Commit

Permalink
Fix cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbattat committed Feb 20, 2025
1 parent e2e9b68 commit 14f764e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions rs/tests/dre/utils/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ use ic_system_test_driver::driver::{
node_software_version::NodeSoftwareVersion,
prometheus_vm::{HasPrometheus, PrometheusVm},
test_env::TestEnv,
test_env_api::{get_dependency_path, HasTopologySnapshot, NnsCustomizations},
test_env_api::{HasTopologySnapshot, NnsCustomizations},
};
use serde::Deserialize;
use slog::{info, Logger};
use slog::info;
use url::Url;

pub mod defs;
Expand All @@ -21,8 +21,6 @@ const GUESTOS_UPDATE_IMG_URL: &str = "ENV_DEPS__GUESTOS_UPDATE_IMG_URL";

pub const IC_CONFIG: &str = "IC_CONFIG";

const TAR_EXTENSION: &str = ".tar.zst";

pub fn setup(env: TestEnv, config: IcConfig) {
let mut ic = InternetComputer::new();
if let Some(v) = config.initial_version {
Expand Down Expand Up @@ -100,7 +98,7 @@ pub fn setup(env: TestEnv, config: IcConfig) {

fn update_env_variables(env: &TestEnv, pairs: Vec<(String, &str)>) {
for (value, env_variable) in pairs {
std::env::set_var(env_variable, value);
std::env::set_var(env_variable, &value);
info!(
env.logger(),
"Overriden env variable `{}` to value: {}", env_variable, value
Expand Down

0 comments on commit 14f764e

Please sign in to comment.