@@ -78,7 +78,7 @@ If you want to use [`PinInit`], then you will have to annotate your `struct` wit
7878that you need to write ` <- ` instead of ` : ` for fields that you want to initialize in-place.
7979
8080``` rust
81- use pin_init :: {pin_data, pin_init, InPlaceInit };
81+ use pinned_init :: {pin_data, pin_init, InPlaceInit };
8282
8383#[pin_data]
8484struct Foo {
@@ -125,7 +125,7 @@ impl DriverData {
125125 fn new () -> impl PinInit <Self , Error > {
126126 try_pin_init! (Self {
127127 status <- CMutex :: new (0 ),
128- buffer : Box :: init (pin_init :: init_zeroed ())? ,
128+ buffer : Box :: init (pinned_init :: init_zeroed ())? ,
129129 }? Error )
130130 }
131131}
@@ -146,7 +146,7 @@ actually does the initialization in the correct way. Here are the things to look
146146 ` slot ` gets called.
147147
148148``` rust
149- use pin_init :: {pin_data, pinned_drop, PinInit , PinnedDrop , pin_init_from_closure};
149+ use pinned_init :: {pin_data, pinned_drop, PinInit , PinnedDrop , pin_init_from_closure};
150150use core :: {
151151 ptr :: addr_of_mut,
152152 marker :: PhantomPinned ,
@@ -223,10 +223,10 @@ the `kernel` crate. The [`sync`] module is a good starting point.
223223[ `sync` ] : https://rust.docs.kernel.org/kernel/sync/index.html
224224[ pinning ] : https://doc.rust-lang.org/std/pin/index.html
225225[ structurally pinned fields ] : https://doc.rust-lang.org/std/pin/index.html#projections-and-structural-pinning
226- [ stack ] : https://docs.rs/pin -init/latest/pin_init /macro.stack_pin_init.html
227- [ `impl PinInit<Foo>` ] : https://docs.rs/pin -init/latest/pin_init /trait.PinInit.html
228- [ `impl PinInit<T, E>` ] : https://docs.rs/pin -init/latest/pin_init /trait.PinInit.html
229- [ `impl Init<T, E>` ] : https://docs.rs/pin -init/latest/pin_init /trait.Init.html
226+ [ stack ] : https://docs.rs/pinned -init/latest/pinned_init /macro.stack_pin_init.html
227+ [ `impl PinInit<Foo>` ] : https://docs.rs/pinned -init/latest/pinned_init /trait.PinInit.html
228+ [ `impl PinInit<T, E>` ] : https://docs.rs/pinned -init/latest/pinned_init /trait.PinInit.html
229+ [ `impl Init<T, E>` ] : https://docs.rs/pinned -init/latest/pinned_init /trait.Init.html
230230[ Rust-for-Linux ] : https://rust-for-linux.com/
231231
232232<!-- cargo-rdme end -->
0 commit comments