Skip to content

Commit 2cd928a

Browse files
committed
Fix merge conflicts
1 parent acb1d53 commit 2cd928a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

rust/kernel/file_operations.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@
77
use core::convert::{TryFrom, TryInto};
88
use core::{marker, mem, ptr};
99

10+
use alloc::boxed::Box;
11+
1012
use crate::{
1113
bindings, c_types,
1214
error::{Error, KernelResult},
1315
file::File,
1416
io_buffer::{IoBufferReader, IoBufferWriter},
1517
iov_iter::IovIter,
16-
sync::{CondVar, Ref, RefCounted},
18+
sync::CondVar,
19+
types::PointerWrapper,
1720
user_ptr::{UserSlicePtr, UserSlicePtrReader, UserSlicePtrWriter},
1821
};
1922

@@ -552,7 +555,7 @@ pub trait FileOperations: Send + Sync + Sized {
552555
const TO_USE: ToUse;
553556

554557
/// The pointer type that will be used to hold ourselves.
555-
type Wrapper: PointerWrapper<Self> = Box<Self>;
558+
type Wrapper: PointerWrapper = Box<Self>;
556559

557560
/// Cleans up after the last reference to the file goes away.
558561
///

0 commit comments

Comments
 (0)