diff options
Diffstat (limited to 'bin/src')
-rw-r--r-- | bin/src/utils.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/src/utils.rs b/bin/src/utils.rs index d374b4b..a3d51b4 100644 --- a/bin/src/utils.rs +++ b/bin/src/utils.rs | |||
@@ -30,6 +30,8 @@ pub fn get_version_info() -> Option<String> { | |||
30 | .output() | 30 | .output() |
31 | .expect("failed to execute"); | 31 | .expect("failed to execute"); |
32 | std::str::from_utf8(&program.stdout) | 32 | std::str::from_utf8(&program.stdout) |
33 | .ok() | 33 | .ok()? |
34 | .split(' ') | ||
35 | .nth(2) | ||
34 | .map(ToOwned::to_owned) | 36 | .map(ToOwned::to_owned) |
35 | } | 37 | } |