Skip to content

Commit

Permalink
style(rsjudge-runner): 🎨 simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisu-Woniu committed Apr 17, 2024
1 parent cb3f2d1 commit 003b4bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rsjudge-runner/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub enum Error {
/// Convert a [`capctl::Error`] to an [`Error::Io`].
impl From<capctl::Error> for Error {
fn from(value: capctl::Error) -> Self {
Self::Io(io::Error::from_raw_os_error(value.code()))
Self::Io(io::Error::from(value))
}
}

Expand Down

0 comments on commit 003b4bd

Please sign in to comment.