diff --git a/Cargo.toml b/Cargo.toml index 8e9308ed..1dbbef2e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -57,7 +57,7 @@ serde = { version = "1.0.166", features = ["derive"] } statrs = "0.17.1" serde_json = "1.0.128" serde-wasm-bindgen = "0.6.0" -thiserror = "1.0.40" +thiserror = "2.0.3" tinyvec = "1.6.0" tracing = "0.1.40" tracing-subscriber = { version = "0.3.18", default-features = false } diff --git a/crates/augurs-prophet/src/error.rs b/crates/augurs-prophet/src/error.rs index be6694ca..e6599a33 100644 --- a/crates/augurs-prophet/src/error.rs +++ b/crates/augurs-prophet/src/error.rs @@ -28,7 +28,7 @@ pub enum Error { #[error("Invalid interval width: {0}; must be between 0.0 and 1.0")] InvalidIntervalWidth(f64), /// Too many data points were provided, overflowing an `i32`. - #[error("Too many data points: {0}, max is {}", i32::MAX)] + #[error("Too many data points: {got}, max is {max}", got = .0, max = i32::MAX)] TooManyDataPoints(usize), /// The timestamps provided are constant. #[error("Timestamps are constant: {0}")]