Skip to content

Commit fd9fa26

Browse files
committed
Fix lint suggestions
1 parent 6f97f0a commit fd9fa26

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

src/openwrt/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,15 +290,15 @@ impl MemoryReadout for OpenWrtMemoryReadout {
290290
}
291291

292292
fn swap_total(&self) -> Result<u64, ReadoutError> {
293-
return Err(ReadoutError::NotImplemented);
293+
Err(ReadoutError::NotImplemented)
294294
}
295295

296296
fn swap_free(&self) -> Result<u64, ReadoutError> {
297-
return Err(ReadoutError::NotImplemented);
297+
Err(ReadoutError::NotImplemented)
298298
}
299299

300300
fn swap_used(&self) -> Result<u64, ReadoutError> {
301-
return Err(ReadoutError::NotImplemented);
301+
Err(ReadoutError::NotImplemented)
302302
}
303303
}
304304

src/traits.rs

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -568,18 +568,14 @@ pub trait GeneralReadout {
568568
/// _e.g._ `kitty`
569569
fn terminal(&self) -> Result<String, ReadoutError>;
570570

571-
/**
572-
This function should return the currently running shell depending on the `_shorthand` value.
573-
574-
- If `_shorthand` is `ShellFormat::Relative` the basename of the shell will be returned.
575-
576-
_e.g._ bash, zsh, etc.
577-
578-
- If `_shorthand` is `ShellFormat::Absolute` the absolute path of the shell will be returned.
579-
580-
_e.g._ /bin/bash, /bin/zsh, etc.
581-
*/
582-
571+
/// This function should return the currently running shell depending on the `_shorthand`
572+
/// value, for example: /bin/bash, /bin/zsh, etc.
573+
///
574+
/// - If `_shorthand` is `ShellFormat::Relative` the basename of the shell will be returned,
575+
/// _e.g._ bash, zsh, etc.
576+
///
577+
/// - If `_shorthand` is `ShellFormat::Absolute` the absolute path of the shell will be
578+
/// returned.
583579
fn shell(&self, _shorthand: ShellFormat, kind: ShellKind) -> Result<String, ReadoutError>;
584580

585581
/// This function should return the model name of the CPU \

0 commit comments

Comments
 (0)