diff options
| author | Rubens Brandao <git@rubens.io> | 2024-04-17 12:49:43 -0300 |
|---|---|---|
| committer | Rubens Brandao <git@rubens.io> | 2024-04-17 12:49:43 -0300 |
| commit | 562fbfae8aa17a2f3758710b23ec25e828d16cd6 (patch) | |
| tree | 0e2b93a4355a8f1815024c73914c1e197bf1d7c3 /rust/src/binaryview.rs | |
| parent | 58673b20ef858ae5d4d7b1ff0dec1460a0f36e5f (diff) | |
remove unnecessary transmutions
Diffstat (limited to 'rust/src/binaryview.rs')
| -rw-r--r-- | rust/src/binaryview.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/binaryview.rs b/rust/src/binaryview.rs index ecf75384..33fd9881 100644 --- a/rust/src/binaryview.rs +++ b/rust/src/binaryview.rs @@ -574,7 +574,7 @@ pub trait BinaryViewExt: BinaryViewBase { } } - fn define_auto_data_var(&self, dv: Ref<DataVariable>) { + fn define_auto_data_var(&self, dv: &DataVariable) { unsafe { BNDefineDataVariable( self.as_ref().handle, @@ -585,7 +585,7 @@ pub trait BinaryViewExt: BinaryViewBase { } /// You likely would also like to call [`Self::define_user_symbol`] to bind this data variable with a name - fn define_user_data_var(&self, dv: Ref<DataVariable>) { + fn define_user_data_var(&self, dv: &DataVariable) { unsafe { BNDefineUserDataVariable( self.as_ref().handle, |
