fix rust warnings

This commit is contained in:
SpikeHD
2022-05-16 19:15:59 -07:00
parent 1463435b2a
commit 0381af4a32
3 changed files with 3 additions and 4 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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)