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 authored and Thomas Lamprecht committed 2022-01-18 15:54:33 +01:00
1 parent 5ee8dd784f
commit e92df23806
2 files changed
+2 -2

No files matched your search

+1 -1
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",
+1 -1
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) };