Skip to content

Commit

Permalink
Clippy + fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjg committed Jan 18, 2024
1 parent adaa609 commit 17e5015
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rust/src/obj_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,14 @@ macro_rules! obj_id_or_throw {
"Object ID cannot be null",
)
.unwrap();
#[allow(clippy::unused_unit)]
return $returning;
}
Err(e) => {
use crate::AUTOMERGE_EXCEPTION;
$env.throw_new(AUTOMERGE_EXCEPTION, format!("{}", e))
.unwrap();
#[allow(clippy::unused_unit)]
return $returning;
}
}
Expand Down Expand Up @@ -185,7 +187,7 @@ pub unsafe extern "C" fn objectIdsEqual(
"Object ID cannot be null",
)
.unwrap();
return false.into();
false.into()
}
(Some(left), Some(right)) => (left.as_ref() == right.as_ref()).into(),
}
Expand Down

0 comments on commit 17e5015

Please sign in to comment.