Skip to content

Commit

Permalink
Address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hansl committed Aug 26, 2024
1 parent 602f03d commit 43193de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/interop/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,10 @@ impl<T: NativeObject> JsClass<T> {

impl<T: NativeObject + Clone> JsClass<T> {
/// Clones the inner class instance.
///
/// # Panics
///
/// Panics if the inner object is currently borrowed mutably.
#[must_use]
pub fn clone_inner(&self) -> T {
self.inner.borrow().data().clone()
Expand Down

0 comments on commit 43193de

Please sign in to comment.