Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed Jun 6, 2024
1 parent 4e27288 commit 1a41a84
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/commons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,5 @@ pub extern "C" fn z_source_info_id(this: &z_loaned_source_info_t) -> z_entity_gl
/// Returns the source_sn of the source info.
#[no_mangle]
pub extern "C" fn z_source_info_sn(this: &z_loaned_source_info_t) -> u64 {
match this.transmute_ref().source_sn {
Some(source_sn) => source_sn,
None => 0,
}
this.transmute_ref().source_sn.unwrap_or(0)
}

0 comments on commit 1a41a84

Please sign in to comment.