Skip to content

Commit

Permalink
Clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
frozenlib committed May 3, 2024
1 parent 528d0d4 commit 88dc4b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lgbm/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use lgbm_sys::LGBM_GetLastError;
use std::{
ffi::{CStr, FromBytesWithNulError, FromVecWithNulError, IntoStringError, NulError},
fmt::Display,
num::TryFromIntError,
os::raw::c_int,
string::FromUtf8Error,
Expand All @@ -22,7 +21,7 @@ impl Error {
message: message.to_string(),
}
}
pub fn from_error(e: impl std::error::Error + Display) -> Self {
pub fn from_error(e: impl std::error::Error) -> Self {
Self {
code: None,
message: e.to_string(),
Expand Down

0 comments on commit 88dc4b0

Please sign in to comment.