Skip to content

Commit

Permalink
Merge pull request #168 from eclipse-zenoh/fix-clippy
Browse files Browse the repository at this point in the history
Fix clippy lint
  • Loading branch information
p-avital authored Jul 3, 2023
2 parents 9fd5b56 + eade07e commit c0b47a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subscriber.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ pub extern "C" fn z_subscriber_null() -> z_owned_subscriber_t {
#[repr(C)]
pub struct z_subscriber_t(*const z_owned_subscriber_t);

impl<'a> AsRef<Subscriber> for z_subscriber_t {
impl AsRef<Subscriber> for z_subscriber_t {
fn as_ref(&self) -> &Subscriber {
unsafe { (*self.0).as_ref() }
}
Expand Down

0 comments on commit c0b47a0

Please sign in to comment.