Skip to content

Commit

Permalink
修正多餘變數
Browse files Browse the repository at this point in the history
  • Loading branch information
xiao-e-yun committed Oct 10, 2021
1 parent 5451d40 commit a0e6536
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions launcher/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::{env, process::Command};
use std::os::windows::process::CommandExt;
use serde::{Deserialize, Serialize};
use notify_rust::Notification;
use cluFlock::{ExclusiveFlock, ToFlock};
use cluFlock::ExclusiveFlock;
use std::path::Path;
use nfd2::Response;
use serde_json;
Expand Down Expand Up @@ -61,7 +61,7 @@ fn main() {
if cfg!(target_os = "windows") {
let file_lock = std::fs::File::create(".LOCK").unwrap().try_lock();
match file_lock {
Ok(_) => print!("lock"),
Ok(_) => print!("locked"),
Err(_) => panic!("is locked"),
}
const CREATE_NO_WINDOW: u32 = 0x08000000;
Expand Down

0 comments on commit a0e6536

Please sign in to comment.