From 5c267d8d947caab8778aa35ded254b222fab0451 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 30 May 2024 16:36:53 -0400 Subject: [PATCH] chore(deps): update rust (#1788) --- .circleci/config.yml | 2 +- crates/rover-client/src/error.rs | 2 +- installers/binstall/src/system/unix.rs | 6 +----- rust-toolchain.toml | 4 ++-- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e3014b717..4220a5d14 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,7 @@ version: 2.1 # Our CircleCI dependencies orbs: - rust: circleci/rust@1.6.0 + rust: circleci/rust@1.6.1 gh: circleci/github-cli@2.3.0 node: circleci/node@5.2.0 secops: apollo/circleci-secops-orb@2.0.7 diff --git a/crates/rover-client/src/error.rs b/crates/rover-client/src/error.rs index 8f328230b..ba06e1132 100644 --- a/crates/rover-client/src/error.rs +++ b/crates/rover-client/src/error.rs @@ -238,7 +238,7 @@ pub enum RoverClientError { RateLimitExceeded, } -fn contract_publish_errors_msg(msgs: &Vec, no_launch: &bool) -> String { +fn contract_publish_errors_msg(msgs: &[String], no_launch: &bool) -> String { let plural = match msgs.len() { 1 => "", _ => "s", diff --git a/installers/binstall/src/system/unix.rs b/installers/binstall/src/system/unix.rs index 375249499..0560248bc 100644 --- a/installers/binstall/src/system/unix.rs +++ b/installers/binstall/src/system/unix.rs @@ -16,11 +16,7 @@ pub fn add_binary_to_path(installer: &Installer) -> Result<(), InstallerError> { for rc in shell.update_rcs() { if !rc.is_file() || !fs::read_to_string(&rc)?.contains(&source_cmd) { tracing::debug!("updating {}", &rc); - let mut dest_file = fs::OpenOptions::new() - .write(true) - .append(true) - .create(true) - .open(&rc)?; + let mut dest_file = fs::OpenOptions::new().append(true).create(true).open(&rc)?; writeln!(&mut dest_file, "{}", &source_cmd)?; dest_file.sync_data()?; } diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 50f99fa3c..8336e05b9 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.75.0" -components = [ "rustfmt", "clippy" ] \ No newline at end of file +channel = "1.76.0" +components = [ "rustfmt", "clippy" ]