Skip to content

Commit

Permalink
Fix unused code warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
NiceneNerd committed Jul 6, 2024
1 parent 6f021cc commit 44a3fda
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 1 deletion.
93 changes: 92 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ anyhow_ext = { workspace = true }
dircpy = { workspace = true }
dirs2 = { workspace = true }
eframe = { workspace = true, features = ["glow"] }
env_logger = "0.11.3"
flume = { workspace = true }
fs-err = { workspace = true }
join_str = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions crates/uk-manager/src/bnp/drops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use super::BnpConverter;
type DropTables = FxHashMap<String, DropTable>;
type DropDiff = FxHashMap<String, DropTables>;

#[allow(dead_code)]
#[derive(Debug, Deserialize)]
#[serde(untagged)]
enum ProbabilityValue {
Expand Down
7 changes: 7 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ xflags::xflags! {
#[derive(Debug)]
pub struct Ukmm {
pub debug: bool,
/// While the `portable` flag needs to be recognized by xflags, it is
/// handled by [std::env::args] in the static Settings methods
#[allow(dead_code)]
pub portable: bool,
pub deploy: bool,
pub subcommand: UkmmCmd,
Expand Down Expand Up @@ -195,6 +198,10 @@ impl Runner {
}

pub fn run(self) -> Result<()> {
if self.cli.debug {
env_logger::init();
log::set_max_level(log::LevelFilter::Debug);
}
match &self.cli.subcommand {
UkmmCmd::Mode(Mode { platform }) => {
self.core
Expand Down
2 changes: 2 additions & 0 deletions src/gui/tasks/handlers.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unused_imports)]

use std::{env, fs, path::PathBuf, process::Command};

use anyhow::{anyhow, Context, Result};
Expand Down

0 comments on commit 44a3fda

Please sign in to comment.