Skip to content

Commit ceecb11

Browse files
committed
docs(hardlink): separate HTML comments per doc link
Each HTML comment explaining the Windows workaround now sits directly above its corresponding link definition, rather than a single combined comment covering all links. https://claude.ai/code/session_01QP9wZyoZcGmJsEsA66ZRok
1 parent 8407682 commit ceecb11

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/hardlink/hardlink_list.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ impl<Size> HardlinkList<Size> {
7575

7676
/// Error that occurs when a different size was detected for the same [`ino`] and [`dev`].
7777
///
78-
/// <!-- Should have been `std::os::unix::fs::MetadataExt::{ino,dev}` but it would error on Windows -->
78+
/// <!-- Should have been `std::os::unix::fs::MetadataExt::ino` but it would error on Windows -->
7979
/// [`ino`]: https://doc.rust-lang.org/std/os/unix/fs/trait.MetadataExt.html#tymethod.ino
80+
/// <!-- Should have been `std::os::unix::fs::MetadataExt::dev` but it would error on Windows -->
8081
/// [`dev`]: https://doc.rust-lang.org/std/os/unix/fs/trait.MetadataExt.html#tymethod.dev
8182
#[derive(Debug, Display, Error)]
8283
#[cfg_attr(test, derive(PartialEq, Eq))]
@@ -91,9 +92,11 @@ pub struct SizeConflictError<Size> {
9192

9293
/// Error that occurs when a different [`nlink`] was detected for the same [`ino`] and [`dev`].
9394
///
94-
/// <!-- Should have been `std::os::unix::fs::MetadataExt::{nlink,ino,dev}` but it would error on Windows -->
95+
/// <!-- Should have been `std::os::unix::fs::MetadataExt::nlink` but it would error on Windows -->
9596
/// [`nlink`]: https://doc.rust-lang.org/std/os/unix/fs/trait.MetadataExt.html#tymethod.nlink
97+
/// <!-- Should have been `std::os::unix::fs::MetadataExt::ino` but it would error on Windows -->
9698
/// [`ino`]: https://doc.rust-lang.org/std/os/unix/fs/trait.MetadataExt.html#tymethod.ino
99+
/// <!-- Should have been `std::os::unix::fs::MetadataExt::dev` but it would error on Windows -->
97100
/// [`dev`]: https://doc.rust-lang.org/std/os/unix/fs/trait.MetadataExt.html#tymethod.dev
98101
#[derive(Debug, Display, Error)]
99102
#[cfg_attr(test, derive(PartialEq, Eq))]

0 commit comments

Comments
 (0)