From e92df238069986efeb9f64beb1638e292cbe1787 Mon Sep 17 00:00:00 2001 From: Matthias Heiserer Date: Tue, 18 Jan 2022 15:25:43 +0100 Subject: [PATCH] docs: make external hyperlinks clickable rustdoc lints detected that two external hyperlinks were not clickable. The short cut used is only available for internal links, otherwise one needs to use the Markdown syntax, so either [Text](URL) or . Signed-off-by: Matthias Heiserer [ T: commit message text width, mention markdown ] Signed-off-by: Thomas Lamprecht --- pbs-tape/src/sgutils2.rs | 2 +- src/tools/disks/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pbs-tape/src/sgutils2.rs b/pbs-tape/src/sgutils2.rs index 33db4b5d..4e241c3b 100644 --- a/pbs-tape/src/sgutils2.rs +++ b/pbs-tape/src/sgutils2.rs @@ -90,7 +90,7 @@ impl SgPt { /// Peripheral device type text (see `inquiry` command) /// -/// see [https://en.wikipedia.org/wiki/SCSI_Peripheral_Device_Type] +/// see pub const PERIPHERAL_DEVICE_TYPE_TEXT: [&'static str; 32] = [ "Disk Drive", "Tape Drive", diff --git a/src/tools/disks/mod.rs b/src/tools/disks/mod.rs index 2f7d8ce6..080e4ba6 100644 --- a/src/tools/disks/mod.rs +++ b/src/tools/disks/mod.rs @@ -469,7 +469,7 @@ impl Disk { /// Read block device stats /// - /// see https://www.kernel.org/doc/Documentation/block/stat.txt + /// see pub fn read_stat(&self) -> std::io::Result> { if let Some(stat) = self.read_sys(Path::new("stat"))? { let stat = unsafe { std::str::from_utf8_unchecked(&stat) };