Skip to content

Commit 234ada6

Browse files
onestackedy86-dev
authored andcommitted
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 <[email protected]>
1 parent 5879d7f commit 234ada6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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)