Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tversteeg committed May 3, 2020
1 parent 698c2f9 commit 7fc42a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/package_manager/mod.rs
Expand Up @@ -97,6 +97,7 @@ pub trait PackageManagerTrait {
}

/// Different ways in which a set of flags can be captured.
#[derive(Debug, Copy, Clone)]
pub enum CaptureFlag {
/// A single flag argument without a value.
Single(&'static str),
Expand Down
3 changes: 2 additions & 1 deletion src/package_manager_impl.rs
Expand Up @@ -175,7 +175,8 @@ impl PackageManager {
}

impl CaptureFlag {
pub fn flag(&self) -> &'static str {
/// Extract the flag which is always there.
pub fn flag(self) -> &'static str {
match self {
CaptureFlag::Single(flag) => flag,
CaptureFlag::SetValue(flag, _) => flag,
Expand Down

0 comments on commit 7fc42a4

Please sign in to comment.