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 <URL>.

Signed-off-by: Matthias Heiserer <m.heiserer@proxmox.com>
[ T: commit message text width, mention markdown ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Matthias Heiserer 2022-01-18 15:25:43 +01:00 committed by Thomas Lamprecht
parent 5ee8dd784f
commit e92df23806
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ impl SgPt {
/// Peripheral device type text (see `inquiry` command)
///
/// see [https://en.wikipedia.org/wiki/SCSI_Peripheral_Device_Type]
/// see <https://en.wikipedia.org/wiki/SCSI_Peripheral_Device_Type>
pub const PERIPHERAL_DEVICE_TYPE_TEXT: [&'static str; 32] = [
"Disk Drive",
"Tape Drive",

View File

@ -469,7 +469,7 @@ impl Disk {
/// Read block device stats
///
/// see https://www.kernel.org/doc/Documentation/block/stat.txt
/// see <https://www.kernel.org/doc/Documentation/block/stat.txt>
pub fn read_stat(&self) -> std::io::Result<Option<BlockDevStat>> {
if let Some(stat) = self.read_sys(Path::new("stat"))? {
let stat = unsafe { std::str::from_utf8_unchecked(&stat) };