From a0e6536a8ba860d81ac007a9658fe39b11691043 Mon Sep 17 00:00:00 2001 From: xiao_e_yun <67814228+QAZXSW517@users.noreply.github.com> Date: Mon, 11 Oct 2021 01:55:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=A4=9A=E9=A4=98=E8=AE=8A?= =?UTF-8?q?=E6=95=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- launcher/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher/src/main.rs b/launcher/src/main.rs index 291ff97..a810643 100644 --- a/launcher/src/main.rs +++ b/launcher/src/main.rs @@ -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; @@ -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;