mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-12 15:14:35 +01:00
fix rust warnings
This commit is contained in:
@@ -4,7 +4,6 @@ windows_subsystem = "windows"
|
||||
)]
|
||||
|
||||
use open;
|
||||
use tokio::sync::oneshot::Sender;
|
||||
use structs::{APIQuery};
|
||||
|
||||
mod file_helpers;
|
||||
@@ -72,7 +71,7 @@ fn run_program(path: String) {
|
||||
|
||||
#[tauri::command]
|
||||
fn run_jar(path: String, execute_in: String, java_path: String) {
|
||||
let mut command = if java_path.is_empty() {
|
||||
let command = if java_path.is_empty() {
|
||||
format!("java -jar {}", path)
|
||||
} else {
|
||||
format!("\"{}\" -jar {}", java_path, path)
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
* https://github.com/omjadas/hudsucker/blob/main/examples/log.rs
|
||||
*/
|
||||
|
||||
use std::borrow::Borrow;
|
||||
use hudsucker::{
|
||||
async_trait::async_trait,
|
||||
certificate_authority::RcgenAuthority,
|
||||
@@ -16,7 +15,6 @@ use registry::{Hive, Data, Security};
|
||||
|
||||
use rustls_pemfile as pemfile;
|
||||
use tauri::http::Uri;
|
||||
use tokio::sync::oneshot::Sender;
|
||||
|
||||
async unsafe fn shutdown_signal() {
|
||||
tokio::signal::ctrl_c().await
|
||||
|
||||
@@ -42,6 +42,8 @@ export default class Downloads extends React.Component<IProps, IState> {
|
||||
}
|
||||
|
||||
this.getGrasscutterFolder = this.getGrasscutterFolder.bind(this)
|
||||
this.downloadGrasscutterStableRepo = this.downloadGrasscutterStableRepo.bind(this)
|
||||
this.downloadGrasscutterDevRepo = this.downloadGrasscutterDevRepo.bind(this)
|
||||
this.downloadGrasscutterStable = this.downloadGrasscutterStable.bind(this)
|
||||
this.downloadGrasscutterLatest = this.downloadGrasscutterLatest.bind(this)
|
||||
this.downloadResources = this.downloadResources.bind(this)
|
||||
|
||||
Reference in New Issue
Block a user