Skip to content

Commit

Permalink
chore: run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
donovanglover committed Jan 12, 2025
1 parent f4de9da commit f875eb4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
10 changes: 8 additions & 2 deletions src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,16 @@ pub fn exec(address: SocketAddrV4, path: &Path, directory: &str) {
return;
}

let ping = minreq::get(format!("http://{address}/")).with_timeout(1).send().unwrap();
let ping = minreq::get(format!("http://{address}/"))
.with_timeout(1)
.send()
.unwrap();

if ping.status_code != 200 {
notify(&format!("Error: sakaya server is not accessible on {address}."), None);
notify(
&format!("Error: sakaya server is not accessible on {address}."),
None,
);
return;
}

Expand Down
10 changes: 5 additions & 5 deletions src/server/routes/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ pub async fn init(Json(options): Json<Options>) -> Result<String, &'static str>

notify("Initializing wine prefix...", None);

Command::new("wineboot")
.envs(&envs)
.output()
.unwrap();
Command::new("wineboot").envs(&envs).output().unwrap();

let commands = [
"fontsmooth=rgb",
Expand Down Expand Up @@ -43,7 +40,10 @@ fn winetricks(commands: &[&str], envs: HashMap<&str, String>) {
let mut i = 1;

for command in commands {
notify(&format!("Running winetricks {command}... ({i}/{len})"), None);
notify(
&format!("Running winetricks {command}... ({i}/{len})"),
None,
);

Command::new("winetricks")
.arg("-q")
Expand Down

0 comments on commit f875eb4

Please sign in to comment.