Skip to content

Commit

Permalink
More dependencies updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Revertron committed Jan 11, 2024
1 parent a92799f commit 080d4f3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 22 deletions.
24 changes: 12 additions & 12 deletions Cargo.lock

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

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exclude = ["blockchain.db", "alfis.toml"]
getopts = "0.2.21"
log = "0.4.17"
simplelog = "0.12.0"
toml = "0.7.2"
toml = "0.8.8"
digest = "0.10.5"
sha2 = "0.10.6"
ed25519-dalek = "2.0.0"
Expand All @@ -35,11 +35,11 @@ num-traits = "0.2.15"
chrono = { version = "0.4.20", features = ["serde"] }
time = "0.3.14"
rand = { package = "rand", version = "0.8.5" }
sqlite = "0.31.0"
sqlite = "0.32.0"
uuid = { version = "1.3.0", features = ["serde", "v4"] }
mio = { version = "0.8.9", features = ["os-poll", "net"] }
ureq = { version = "2.9", optional = true, git = "https://github.com/algesten/ureq" }
lru = "0.11.0"
lru = "0.12"
derive_more = "0.99.17"
lazy_static = "1.4.0"
spmc = "0.3.0"
Expand All @@ -52,10 +52,10 @@ open = { version = "5.0.0", optional = true }
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3.9", features = ["impl-default", "wincon", "shellscalingapi"] }
windows-service = "0.6.0"
thread-priority = "0.13.1"
thread-priority = "0.15.1"

[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies]
thread-priority = "0.13.1"
thread-priority = "0.15.1"

[build-dependencies]
winres = "0.1.12"
Expand Down
7 changes: 2 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ fn main() {

// Create a new directory inside the AppData directory
let new_directory = format!("{}\\ALFIS", progdata);
fs::create_dir_all(&new_directory).expect("Failed to create directory");
std::fs::create_dir_all(&new_directory).expect("Failed to create directory");

// Change the current directory to the new directory
env::set_current_dir(&new_directory).expect("Failed to change directory");
Expand Down Expand Up @@ -163,10 +163,7 @@ fn main() {
if let Some(path) = opt_matches.opt_str("w") {
env::set_current_dir(Path::new(&path)).unwrap_or_else(|_| panic!("Unable to change working directory to '{}'", &path));
}
let config_name = match opt_matches.opt_str("c") {
None => SETTINGS_FILENAME.to_owned(),
Some(path) => path
};
let config_name = opt_matches.opt_str("c").unwrap_or_else(|| SETTINGS_FILENAME.to_owned());

setup_logger(&opt_matches, console_attached);
if let Some(status) = opt_matches.opt_str("s") {
Expand Down

0 comments on commit 080d4f3

Please sign in to comment.