Skip to content

Commit 873f2e9

Browse files
committed
lint
1 parent b254f43 commit 873f2e9

File tree

5 files changed

+8
-16
lines changed

5 files changed

+8
-16
lines changed

rust/cubenativeutils/src/wrappers/neon/object/neon_array.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ impl<C: Context<'static> + 'static> NativeArray<NeonInnerTypes<C>> for NeonArray
4747
neon_vec
4848
.into_iter()
4949
.map(|o| -> Result<_, CubeError> {
50-
Ok(NativeObjectHandle::new(NeonObject::new(self.object.get_context(), o)?))
50+
Ok(NativeObjectHandle::new(NeonObject::new(
51+
self.object.get_context(),
52+
o,
53+
)?))
5154
})
5255
.collect::<Result<Vec<_>, _>>()
5356
}

rust/cubenativeutils/src/wrappers/neon/object/neon_function.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::{NeonObject, RootHolder, ObjectNeonTypeHolder};
1+
use super::{NeonObject, ObjectNeonTypeHolder, RootHolder};
22
use crate::wrappers::{
33
neon::inner_types::NeonInnerTypes,
44
object::{NativeFunction, NativeType},

rust/cubenativeutils/src/wrappers/neon/object/neon_object.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ use super::{
55
neon_struct::NeonStruct,
66
RootHolder,
77
};
8-
use crate::wrappers::neon::{
9-
context::ContextHolder,
10-
inner_types::NeonInnerTypes,
11-
};
8+
use crate::wrappers::neon::{context::ContextHolder, inner_types::NeonInnerTypes};
129
use crate::wrappers::object::NativeObject;
1310
use cubesql::CubeError;
1411
use neon::prelude::*;

rust/cubenativeutils/src/wrappers/neon/object/object_root_holder.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ pub struct ObjectNeonTypeHolder<C: Context<'static>, V: Object + 'static> {
88
value: Option<Rc<Root<V>>>,
99
}
1010
impl<C: Context<'static> + 'static, V: Object + 'static> ObjectNeonTypeHolder<C, V> {
11-
pub fn new(
12-
context: ContextHolder<C>,
13-
object: Handle<'static, V>,
14-
cx: &mut C,
15-
) -> Self {
11+
pub fn new(context: ContextHolder<C>, object: Handle<'static, V>, cx: &mut C) -> Self {
1612
let value = object.root(cx);
1713
Self {
1814
context,

rust/cubenativeutils/src/wrappers/neon/object/primitive_root_holder.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,7 @@ pub struct PrimitiveNeonTypeHolder<C: Context<'static>, V: NeonPrimitiveMapping
115115
impl<C: Context<'static> + 'static, V: Value + NeonPrimitiveMapping + 'static>
116116
PrimitiveNeonTypeHolder<C, V>
117117
{
118-
pub fn new(
119-
context: ContextHolder<C>,
120-
object: Handle<'static, V>,
121-
cx: &mut C,
122-
) -> Self {
118+
pub fn new(context: ContextHolder<C>, object: Handle<'static, V>, cx: &mut C) -> Self {
123119
let value = V::from_neon(cx, &object);
124120
Self { context, value }
125121
}

0 commit comments

Comments
 (0)