Skip to content

Commit

Permalink
build: bump Rust toolchain to 1.77.2 (#828)
Browse files Browse the repository at this point in the history
  • Loading branch information
CBenoit authored Apr 26, 2024
1 parent 1e4a18a commit 8898dfc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions devolutions-gateway/src/api/webapp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}

Expand All @@ -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<HashMap<(String, IpAddr), u8>>;

Expand Down
2 changes: 1 addition & 1 deletion devolutions-gateway/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const START_FAILED_ERR_CODE: u32 = 2;
fn gateway_service_main(
rx: mpsc::Receiver<ServiceEvent<GatewayServiceEvent>>,
_tx: mpsc::Sender<ServiceEvent<GatewayServiceEvent>>,
args: Vec<String>,
_args: Vec<String>,
_standalone_mode: bool,
) -> u32 {
let Ok(conf_handle) = ConfHandle::init() else {
Expand Down
1 change: 1 addition & 0 deletions devolutions-gateway/src/recording.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ where
let res = match fs::OpenOptions::new()
.read(false)
.write(true)
.truncate(true)
.create(true)
.open(&recording_file)
.await
Expand Down
1 change: 1 addition & 0 deletions jetsocat/src/pipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ pub async fn open_pipe(mode: PipeMode, proxy_cfg: Option<ProxyConfig>) -> Result
let file = fs::OpenOptions::new()
.read(false)
.write(true)
.append(true)
.create(true)
.open(&path)
.await
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.76.0"
channel = "1.77.2"
components = ["rustfmt", "clippy"]

0 comments on commit 8898dfc

Please sign in to comment.