diff options
Diffstat (limited to 'src/options/version.rs')
-rw-r--r-- | src/options/version.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/options/version.rs b/src/options/version.rs index 0b26c07..ae151b4 100644 --- a/src/options/version.rs +++ b/src/options/version.rs @@ -19,9 +19,9 @@ impl VersionString { /// ‘deduce’ functions, returning Err if help needs to be shown. /// /// Like --help, this doesn’t bother checking for errors. - pub fn deduce(matches: &MatchedFlags) -> Result<(), VersionString> { + pub fn deduce(matches: &MatchedFlags) -> Result<(), Self> { if matches.count(&flags::VERSION) > 0 { - Err(VersionString) + Err(Self) } else { Ok(()) // no version needs to be shown |