Skip to content

Commit

Permalink
Update sysinfo and thiserror
Browse files Browse the repository at this point in the history
  • Loading branch information
bradlarsen committed Dec 17, 2024
1 parent 6c6d0e0 commit 78cb43e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion crates/content-guesser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ path = "src/lib.rs"
magic = { version = "0.16", optional = true }
mime_guess = "2"
mime = "0.3"
thiserror = "1"
thiserror = "2"
2 changes: 1 addition & 1 deletion crates/noseyparker-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde-sarif = "0.6"
strum = { version = "0.26", features = ["derive"] }
sysinfo = { version = "0.32" }
sysinfo = { version = "0.33" }
tar = "0.4"
tempfile = "3.1"
tracing = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion crates/noseyparker-cli/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ lazy_static! {
static ref RAM_GB: Option<f64> = {
if sysinfo::IS_SUPPORTED_SYSTEM {
use sysinfo::{System,RefreshKind,MemoryRefreshKind};
let s = System::new_with_specifics(RefreshKind::new().with_memory(MemoryRefreshKind::new().with_ram()));
let s = System::new_with_specifics(RefreshKind::default().with_memory(MemoryRefreshKind::default().with_ram()));
Some(s.total_memory() as f64 / 1024.0 / 1024.0 / 1024.0)
} else {
None
Expand Down
2 changes: 1 addition & 1 deletion crates/noseyparker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ secrecy = { version = "0.10.0", optional = true }
smallvec = { version = "1", features = ["const_generics", "const_new", "union"] }
serde = { version = "1.0", features = ["derive", "rc"] }
serde_json = { version = "1.0" }
thiserror = "1"
thiserror = "2"
tokio = { version = "1.23", optional = true }
tracing = "0.1"
url = "2.3"
Expand Down

0 comments on commit 78cb43e

Please sign in to comment.