Skip to content

Commit

Permalink
rust 2021: TryFrom is now in the prelude
Browse files Browse the repository at this point in the history
We don't need to explicitly import it anymore. This is the only explicit
import we had that got added to the prelude in Rust 2021.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
  • Loading branch information
cyphar committed Nov 30, 2024
1 parent 782f968 commit b8fbbaf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/capi/procfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ use crate::{
procfs::{ProcfsBase, GLOBAL_PROCFS_HANDLE},
};

use std::{
convert::TryFrom,
os::unix::io::{OwnedFd, RawFd},
};
use std::os::unix::io::{OwnedFd, RawFd};

use libc::{c_char, c_int, size_t};
use open_enum::open_enum;
Expand Down

0 comments on commit b8fbbaf

Please sign in to comment.