reformat, add ping command
This commit is contained in:
@@ -2,10 +2,7 @@ use std::process::Command;
|
||||
use std::str;
|
||||
|
||||
fn main() {
|
||||
let desc_c = Command::new("git")
|
||||
.args(&["describe", "--all", "--long"])
|
||||
.output()
|
||||
.unwrap();
|
||||
let desc_c = Command::new("git").args(&["describe", "--all", "--long"]).output().unwrap();
|
||||
|
||||
let desc = unsafe { str::from_utf8_unchecked(&desc_c.stdout) };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user