Resolve all warnings
This commit is contained in:
parent
c7e98ad043
commit
eb32445da7
9 changed files with 15 additions and 27 deletions
|
@ -1,15 +1,15 @@
|
|||
use std::{
|
||||
fs::{read, read_to_string, write},
|
||||
fs::{read_to_string, write},
|
||||
path::PathBuf,
|
||||
process::exit,
|
||||
};
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
use toml_edit::{ArrayOfTables, DocumentMut, Item};
|
||||
use serde::Deserialize;
|
||||
use toml_edit::{DocumentMut, Item};
|
||||
|
||||
use crate::prompt_theme::{
|
||||
error,
|
||||
error_handling::{expect_error, expect_ioerror_bar, expect_none},
|
||||
error_handling::{expect_error, expect_ioerror_bar},
|
||||
};
|
||||
|
||||
const PATH: &str = "wrenchmaze.toml";
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
use std::{
|
||||
fs::{read, write},
|
||||
process::exit,
|
||||
};
|
||||
use std::process::exit;
|
||||
|
||||
use rc_zip_sync::ReadZip;
|
||||
use serde::Deserialize;
|
||||
use yansi::Paint;
|
||||
|
||||
|
@ -11,9 +7,9 @@ use crate::{
|
|||
config::wrenchmaze_config::{JavaVersion, WrenchMazeConfig},
|
||||
net::download::download_or_error,
|
||||
prompt_theme::{
|
||||
confirm, end_prompt, error,
|
||||
confirm, end_prompt,
|
||||
error_handling::{expect_error, expect_none},
|
||||
error_nobar, info, info_unaccented, success,
|
||||
info, success,
|
||||
},
|
||||
zip::extract::{extract_zip, find_content_folder},
|
||||
};
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
use std::{
|
||||
ffi::OsStr,
|
||||
fs::{create_dir_all, remove_file},
|
||||
path::PathBuf,
|
||||
process::{Command, exit},
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
use std::{
|
||||
fs::remove_file,
|
||||
path::{Path, PathBuf},
|
||||
};
|
||||
use std::{fs::remove_file, path::PathBuf};
|
||||
|
||||
use yansi::Paint;
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use crate::{
|
|||
error_handling::{expect_ioerror_bar, expect_ioerror_nobar, expect_none},
|
||||
info,
|
||||
},
|
||||
setup::cold::ensure_current_dir,
|
||||
};
|
||||
|
||||
pub fn run_server<P: Into<PathBuf>>(instance_directory: P) -> ExitStatus {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use std::{
|
||||
fs::{create_dir_all, write},
|
||||
path::{PathBuf, absolute},
|
||||
path::PathBuf,
|
||||
process::exit,
|
||||
};
|
||||
|
||||
|
@ -10,13 +10,12 @@ use yansi::Paint;
|
|||
|
||||
use crate::{
|
||||
java::find_java_version::find_java_version_guided,
|
||||
net::download::{DownloadInfo, download_file},
|
||||
prompt_theme::{
|
||||
error,
|
||||
error_handling::{assert, expect_error, expect_ioerror_bar, expect_none},
|
||||
error_nobar, info, success,
|
||||
},
|
||||
zip::extract::{catch_escape, extract_zip, fishy},
|
||||
zip::extract::{catch_escape, extract_zip},
|
||||
};
|
||||
|
||||
pub mod index;
|
||||
|
@ -110,7 +109,7 @@ impl Pack {
|
|||
pub fn install<D: Into<PathBuf>, L: Into<PathBuf>>(
|
||||
&self,
|
||||
destination: D,
|
||||
lockfile_destination: L,
|
||||
_lockfile_destination: L,
|
||||
) {
|
||||
let destination: PathBuf = destination.into();
|
||||
for pack_file in &self.metadata.files_to_download {
|
||||
|
|
|
@ -10,7 +10,7 @@ use yansi::{Paint, hyperlink::HyperlinkExt};
|
|||
|
||||
use crate::{
|
||||
config::{server_config::ServerConfig, server_properties::write_server_properties},
|
||||
java::installation::{ensure_java_installation_interactive, get_java_installation_for_version},
|
||||
java::installation::ensure_java_installation_interactive,
|
||||
neoforge::{
|
||||
download::download_neoforge, install::install_neoforge, post_install::post_install,
|
||||
run::run_server,
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
use std::{
|
||||
env::current_dir,
|
||||
fmt::Display,
|
||||
fs::{read, read_dir, write},
|
||||
path::PathBuf,
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
use std::{
|
||||
ffi::OsStr,
|
||||
fs::{Permissions, create_dir, create_dir_all, write},
|
||||
os::unix::fs::{OpenOptionsExt, PermissionsExt, symlink},
|
||||
fs::{create_dir_all, write},
|
||||
os::unix::fs::{PermissionsExt, symlink},
|
||||
path::{Path, PathBuf, absolute},
|
||||
process::exit,
|
||||
};
|
||||
|
@ -11,7 +10,7 @@ use yansi::Paint;
|
|||
|
||||
use crate::prompt_theme::{
|
||||
error,
|
||||
error_handling::{expect_error, expect_ioerror_bar, expect_none},
|
||||
error_handling::{expect_error, expect_ioerror_bar},
|
||||
error_nobar, info, info_unaccented, success,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue