Skip to content

Commit

Permalink
Rust 1.74.1 (#2557)
Browse files Browse the repository at this point in the history
Signed-off-by: utam0k <[email protected]>
  • Loading branch information
utam0k authored Dec 8, 2023
1 parent 36bc63f commit 21b62da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/libcgroups/src/v1/blkio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const BLKIO_IO_SERVICE_BYTES: &str = "blkio.io_service_bytes_recursive";
// Format: Major:Minor Type Ops
const BLKIO_IO_SERVICED: &str = "blkio.io_serviced_recursive";
// Total time between request dispatch and request completion
//// Format: Major:Minor Type Time(ns)
/// Format: Major:Minor Type Time(ns)
const BLKIO_IO_SERVICE_TIME: &str = "blkio.io_service_time_recursive";
// Total time spend waiting in the scheduler queues for service
// Format: Major:Minor Type Time(ns)
Expand Down
5 changes: 2 additions & 3 deletions crates/libcontainer/src/signal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl TryFrom<&str> for Signal {
fn try_from(s: &str) -> Result<Self, Self::Error> {
use NixSignal::*;

Ok(match s.to_ascii_uppercase().as_str() {
Ok(Signal(match s.to_ascii_uppercase().as_str() {
"1" | "HUP" | "SIGHUP" => SIGHUP,
"2" | "INT" | "SIGINT" => SIGINT,
"3" | "QUIT" | "SIGQUIT" => SIGQUIT,
Expand Down Expand Up @@ -52,8 +52,7 @@ impl TryFrom<&str> for Signal {
"30" | "PWR" | "SIGPWR" => SIGPWR,
"31" | "SYS" | "SIGSYS" => SIGSYS,
_ => return Err(SignalError::InvalidSignal(s.to_string())),
})
.map(Signal)
}))
}
}

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]
profile="default"
channel="1.72.0"
channel="1.74.1"

0 comments on commit 21b62da

Please sign in to comment.