File tree Expand file tree Collapse file tree 2 files changed +11
-15
lines changed Expand file tree Collapse file tree 2 files changed +11
-15
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 \
You can’t perform that action at this time.
0 commit comments