Skip to content

Commit

Permalink
Fix new clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
newAM committed Dec 29, 2023
1 parent 489f779 commit a7e20a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -766,17 +766,17 @@ pub trait FtdiCommon {
"FT_SetChars({:?}, {}, {}, {}, {})",
self.handle(),
event_char,
u8::try_from(event_enable).unwrap(),
u8::from(event_enable),
error_char,
u8::try_from(error_enable).unwrap()
u8::from(error_enable)
);
let status: FT_STATUS = unsafe {
FT_SetChars(
self.handle(),
event_char,
u8::try_from(event_enable).unwrap(),
u8::from(event_enable),
error_char,
u8::try_from(error_enable).unwrap(),
u8::from(error_enable),
)
};
ft_result((), status)
Expand Down

0 comments on commit a7e20a5

Please sign in to comment.