Skip to content

Commit

Permalink
Update dependencies and release v6.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasPius committed Feb 2, 2025
1 parent baa2fd3 commit 6b68e05
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

⚠️ indicates breaking changes.

## 6.1.1

* Updated `thiserror` to 2.0
* Updated `rand` to 0.9

## 6.1.0

* Added `AsyncRobot::new_with_default_client` for constructing a client using only username and password, and the default client.
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ edition = "2021"

[dependencies]
tracing = "0.1.37"
thiserror = "1"
thiserror = "2.0.11"

ipnet = { version = "2.8.0", features = ["serde"] }
time = { version = "0.3.23", features = [
Expand Down Expand Up @@ -44,7 +44,7 @@ hyper-util = { version = "0.1.3", features = [
http-body-util = "0.1.0"

[dev-dependencies]
rand = "0.8.5"
rand = "0.9.0"
tracing-subscriber = "0.3.17"
tracing-test = { version = "0.2.4", features = ["no-env-filter"] }

Expand Down
2 changes: 1 addition & 1 deletion src/api/traffic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ impl TimeRange {
year,
month,
from: 1,
to: time::util::days_in_year_month(year as i32, month),
to: time::util::days_in_month(month, year as i32),
}
}

Expand Down
4 changes: 2 additions & 2 deletions tests/vswitch.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mod common;

use hrobot::{api::vswitch::VlanId, AsyncRobot};
use rand::{distributions::Alphanumeric, Rng as _};
use rand::{distr::Alphanumeric, Rng as _};
use serial_test::file_serial;
use tracing::info;
use tracing_test::traced_test;
Expand Down Expand Up @@ -43,7 +43,7 @@ async fn switch_end_to_end() {

let robot = crate::AsyncRobot::default();

let unique_id: String = rand::thread_rng()
let unique_id: String = rand::rng()
.sample_iter(&Alphanumeric)
.take(8)
.map(char::from)
Expand Down

0 comments on commit 6b68e05

Please sign in to comment.