Skip to content

Commit

Permalink
Resolve clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ortham committed Dec 24, 2022
1 parent 4438b30 commit 1f9095c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ffi/src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub unsafe extern "C" fn esp_plugin_new(
#[no_mangle]
pub unsafe extern "C" fn esp_plugin_free(plugin_ptr: *mut Plugin) {
if !plugin_ptr.is_null() {
Box::from_raw(plugin_ptr);
drop(Box::from_raw(plugin_ptr));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ fn read_plugin<R: BufRead + Seek>(

if header_record.header_type() != expected_header_type {
return Err(Error::ParsingError(
(&header_record.header_type()).to_vec(),
header_record.header_type().to_vec(),
ParsingErrorKind::UnexpectedRecordType(expected_header_type.to_vec()),
));
}
Expand Down

0 comments on commit 1f9095c

Please sign in to comment.