diff --git a/devolutions-gateway/src/api/webapp.rs b/devolutions-gateway/src/api/webapp.rs index b94290f3f..f08af249a 100644 --- a/devolutions-gateway/src/api/webapp.rs +++ b/devolutions-gateway/src/api/webapp.rs @@ -491,7 +491,7 @@ where fn extract_conf(conf: &crate::config::Conf) -> Result<&WebAppConf, HttpError> { conf.web_app .enabled - .then(|| &conf.web_app) + .then_some(&conf.web_app) .ok_or_else(|| HttpError::internal().msg("standalone web application not enabled")) } @@ -506,7 +506,7 @@ mod login_rate_limit { use lazy_static::lazy_static; use parking_lot::Mutex; - use time::Instant; + use std::time::Instant; type LoginAttempts = Mutex>; diff --git a/devolutions-gateway/src/main.rs b/devolutions-gateway/src/main.rs index c4b6653a7..e05d92f28 100644 --- a/devolutions-gateway/src/main.rs +++ b/devolutions-gateway/src/main.rs @@ -131,7 +131,7 @@ const START_FAILED_ERR_CODE: u32 = 2; fn gateway_service_main( rx: mpsc::Receiver>, _tx: mpsc::Sender>, - args: Vec, + _args: Vec, _standalone_mode: bool, ) -> u32 { let Ok(conf_handle) = ConfHandle::init() else { diff --git a/devolutions-gateway/src/recording.rs b/devolutions-gateway/src/recording.rs index 7897e22ae..57caadfd0 100644 --- a/devolutions-gateway/src/recording.rs +++ b/devolutions-gateway/src/recording.rs @@ -94,6 +94,7 @@ where let res = match fs::OpenOptions::new() .read(false) .write(true) + .truncate(true) .create(true) .open(&recording_file) .await diff --git a/jetsocat/src/pipe.rs b/jetsocat/src/pipe.rs index 7ce32c62f..b63d712e3 100644 --- a/jetsocat/src/pipe.rs +++ b/jetsocat/src/pipe.rs @@ -101,6 +101,7 @@ pub async fn open_pipe(mode: PipeMode, proxy_cfg: Option) -> Result let file = fs::OpenOptions::new() .read(false) .write(true) + .append(true) .create(true) .open(&path) .await diff --git a/rust-toolchain.toml b/rust-toolchain.toml index a436857e5..27610ca75 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.76.0" +channel = "1.77.2" components = ["rustfmt", "clippy"]