Skip to content

Commit

Permalink
Use later stable rust version 1.81.0 to fix the CI (#3033)
Browse files Browse the repository at this point in the history
* Use rust 1.81.0

Signed-off-by: Kotaro Inoue <k.musaino@gmail.com>

* Fix linter issue

Signed-off-by: Kotaro Inoue <k.musaino@gmail.com>

---------

Signed-off-by: Kotaro Inoue <k.musaino@gmail.com>
  • Loading branch information
musaprg authored Jan 1, 2025
1 parent aeb6525 commit 846625c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions crates/libcontainer/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,7 @@ pub fn parse_env(envs: &[String]) -> HashMap<String, String> {

/// Get a nix::unistd::User via UID. Potential errors will be ignored.
pub fn get_unix_user(uid: Uid) -> Option<User> {
match User::from_uid(uid) {
Ok(x) => x,
Err(_) => None,
}
User::from_uid(uid).unwrap_or_default()
}

/// Get home path of a User via UID.
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.80.0"
channel="1.81.0"

0 comments on commit 846625c

Please sign in to comment.