reformat, add ping command

This commit is contained in:
2021-08-22 19:30:36 +02:00
parent 448746b1da
commit 0403d1ef71
7 changed files with 108 additions and 237 deletions
+1 -4
View File
@@ -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) };