Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update rust to 1.79; fix warnings #9

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/dscvr-canister-config/src/schema/dfx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ impl DfxConfig {

fn update_names(&mut self) {
for (k, val) in self.canisters.iter_mut() {
val.name = k.clone();
val.name.clone_from(k);
}
for (k, val) in self.networks.iter_mut() {
val.name = k.clone();
val.name.clone_from(k);
}
}

Expand Down
4 changes: 2 additions & 2 deletions crates/dscvr-canister-config/src/schema/dscvr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ impl DSCVRConfig {
.and_then(|canister_network| canister_network.provisioned_instances.clone());
for (name, network) in canister.networks.iter_mut() {
if copy_to_all || network_name.as_ref().unwrap() == name {
network.available_instances = available.clone();
network.provisioned_instances = provisioned.clone();
network.available_instances.clone_from(&available);
network.provisioned_instances.clone_from(&provisioned);
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions crates/ic-canister-logger/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use tracing_subscriber::fmt::time::FormatTime;

pub mod scoped_instruction_counter;

#[allow(dead_code)]
struct IcStdout;

impl Write for IcStdout {
Expand All @@ -27,8 +28,10 @@ impl Write for IcStdout {
}
}

#[allow(dead_code)]
struct IcTimer;

#[allow(dead_code)]
#[cfg(not(target_arch = "wasm32"))]
fn current_time_nanos() -> u64 {
time::OffsetDateTime::now_utc().unix_timestamp_nanos() as u64
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[toolchain]
channel = "1.77.2"
channel = "1.79.0"
components = ["rustfmt", "clippy"]
targets = ["wasm32-unknown-unknown"]
Loading