enable clippy::must_use_candidate, add #[must_use] to the 3 flagged fns
This commit is contained in:
parent
760e5ad4cc
commit
c661d699ad
4 changed files with 3 additions and 1 deletions
|
|
@ -61,6 +61,7 @@ pub enum InfraAction {
|
|||
|
||||
impl InfraAction {
|
||||
/// The `systemctl` subcommand this action maps to.
|
||||
#[must_use]
|
||||
pub fn systemctl_verb(self) -> &'static str {
|
||||
match self {
|
||||
InfraAction::Start => "start",
|
||||
|
|
|
|||
Loading…
Reference in a new issue