Skip to content

Commit 9f9f909

Browse files
committed
Qualify with ptr::
1 parent 53661a5 commit 9f9f909

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/send-and-sync.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ to the heap.
8686

8787
```rust,ignore
8888
use std::mem::size_of;
89-
use std::ptr::NonNull;
89+
use std::ptr;
9090
91-
struct Carton<T>(NonNull<T>);
91+
struct Carton<T>(ptr::NonNull<T>);
9292
9393
impl<T> Carton<T> {
9494
pub fn new(value: T) -> Self {

0 commit comments

Comments
 (0)