From 17e5015678606c7cbf9297617ec84cf515db36dd Mon Sep 17 00:00:00 2001 From: Alex Good Date: Thu, 18 Jan 2024 10:19:59 +0000 Subject: [PATCH] Clippy + fmt --- rust/src/obj_id.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rust/src/obj_id.rs b/rust/src/obj_id.rs index abd8636..56c8f32 100644 --- a/rust/src/obj_id.rs +++ b/rust/src/obj_id.rs @@ -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; } } @@ -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(), }