Skip to content

Commit cd3a959

Browse files
committed
Allow mut_from_ref lint in SBase trait
Added #[allow(clippy::mut_from_ref)] to the base() method in the SBase trait to suppress Clippy lint warning. This is necessary due to the method's signature returning a mutable reference from an immutable one, which is required for interoperability with C++ code.
1 parent 1e61e86 commit cd3a959

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/traits/sbase.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ pub(crate) trait SBase<'a, T>: Inner<'a, T> {
66
/// Returns a pinned reference to the underlying SBase object.
77
///
88
/// This is useful when you need to pass a pinned reference to C++ code.
9+
#[allow(clippy::mut_from_ref)]
910
fn base(&self) -> std::pin::Pin<&mut sbmlcxx::SBase>;
1011
}

0 commit comments

Comments
 (0)