Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
decahedron1 committed Mar 27, 2024
1 parent 3b49271 commit 4f0916c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"rust-analyzer.check.features": ["tls-native", "serde"],
"rust-analyzer.cargo.features": ["tls-native", "serde"]
}
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ edition = "2021"
rust-version = "1.75"

[dependencies]
irc = { version = "0.15", optional = true, default-features = false }
irc = { version = "1", optional = true, default-features = false }
tokio = { version = "1", default-features = false, features = [ "net" ] }
futures-util = { version = "0.3", default-features = false }
thiserror = "1.0"
chrono = { version = "0.4", default-features = false, features = [ "clock", "std" ] }
serde = { version = "1.0", optional = true, features = [ "derive" ] }
serde-aux = { version = "4.4", optional = true }
uuid = { version = "1.5", optional = true }
reqwest = { version = "0.11", optional = true }
reqwest = { version = "0.12", optional = true }
simd-json = { version = "0.13", optional = true }
url = { version = "2.5", optional = true }
rand = { version = "0.8", optional = true }
Expand All @@ -33,4 +33,4 @@ twitch = [ "dep:irc", "dep:uuid" ]
youtube = [ "dep:simd-json", "dep:reqwest", "dep:rand", "dep:serde", "dep:url", "dep:regex", "dep:serde-aux" ]
serde = [ "dep:serde", "chrono/serde", "uuid?/serde" ]
tls-native = [ "irc?/tls-native" ]
#tls-rust = [ "irc?/tls-rust" ]
tls-rust = [ "irc?/tls-rust" ]
2 changes: 1 addition & 1 deletion src/youtube/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@ where
let micros = (number % 1_000_000) as u32;
let nanos = micros * 1_000;

Ok(Utc.from_utc_datetime(&NaiveDateTime::from_timestamp_opt(seconds, nanos).ok_or_else(|| D::Error::custom("Couldn't parse the timestamp"))?))
DateTime::from_timestamp(seconds, nanos).ok_or_else(|| D::Error::custom("Couldn't parse the timestamp"))
}

0 comments on commit 4f0916c

Please sign in to comment.