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:
parent
5ee8dd784f
commit
e92df23806
|
@ -90,7 +90,7 @@ impl SgPt {
|
||||||
|
|
||||||
/// Peripheral device type text (see `inquiry` command)
|
/// 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] = [
|
pub const PERIPHERAL_DEVICE_TYPE_TEXT: [&'static str; 32] = [
|
||||||
"Disk Drive",
|
"Disk Drive",
|
||||||
"Tape Drive",
|
"Tape Drive",
|
||||||
|
|
|
@ -469,7 +469,7 @@ impl Disk {
|
||||||
|
|
||||||
/// Read block device stats
|
/// 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>> {
|
pub fn read_stat(&self) -> std::io::Result<Option<BlockDevStat>> {
|
||||||
if let Some(stat) = self.read_sys(Path::new("stat"))? {
|
if let Some(stat) = self.read_sys(Path::new("stat"))? {
|
||||||
let stat = unsafe { std::str::from_utf8_unchecked(&stat) };
|
let stat = unsafe { std::str::from_utf8_unchecked(&stat) };
|
||||||
|
|
Loading…
Reference in New Issue