Skip to content

Commit f670aa7

Browse files
committed
Update the structural pinning link in readme.
The previous link anchor was broken in rust 1.77, because the documentation was refactored in upstream rust. Change the link to refer to the new section in the rust documentation. Signed-off-by: Christian Schrefl <chrisi.schrefl@gmail.com>
1 parent dbde99f commit f670aa7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ the `kernel` crate. The [`sync`] module is a good starting point.
222222

223223
[`sync`]: https://rust.docs.kernel.org/kernel/sync/index.html
224224
[pinning]: https://doc.rust-lang.org/std/pin/index.html
225-
[structurally pinned fields]: https://doc.rust-lang.org/std/pin/index.html#pinning-is-structural-for-field
225+
[structurally pinned fields]: https://doc.rust-lang.org/std/pin/index.html#projections-and-structural-pinning
226226
[stack]: https://docs.rs/pin-init/latest/pin_init/macro.stack_pin_init.html
227227
[`impl PinInit<Foo>`]: https://docs.rs/pin-init/latest/pin_init/trait.PinInit.html
228228
[`impl PinInit<T, E>`]: https://docs.rs/pin-init/latest/pin_init/trait.PinInit.html

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@
247247
//! [`sync`]: https://rust.docs.kernel.org/kernel/sync/index.html
248248
//! [pinning]: https://doc.rust-lang.org/std/pin/index.html
249249
//! [structurally pinned fields]:
250-
//! https://doc.rust-lang.org/std/pin/index.html#pinning-is-structural-for-field
250+
//! https://doc.rust-lang.org/std/pin/index.html#projections-and-structural-pinning
251251
//! [stack]: crate::stack_pin_init
252252
#![cfg_attr(
253253
kernel,

0 commit comments

Comments
 (0)