summaryrefslogtreecommitdiff
path: root/rust/src/rc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/rc.rs')
-rw-r--r--rust/src/rc.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/rust/src/rc.rs b/rust/src/rc.rs
index 9264e3bd..7c5d610f 100644
--- a/rust/src/rc.rs
+++ b/rust/src/rc.rs
@@ -163,10 +163,7 @@ where
unsafe fn wrap_raw(raw: &'a Self::Raw, context: &'a Self::Context) -> Self::Wrapped;
}
-pub struct Array<P>
-where
- P: CoreOwnedArrayProvider,
-{
+pub struct Array<P: CoreOwnedArrayProvider> {
contents: *mut P::Raw,
count: usize,
context: P::Context,
@@ -189,8 +186,8 @@ impl<P: CoreOwnedArrayProvider> Array<P> {
pub(crate) unsafe fn new(raw: *mut P::Raw, count: usize, context: P::Context) -> Self {
Self {
contents: raw,
- count: count,
- context: context,
+ count,
+ context,
}
}