Skip to content

Commit

Permalink
Fix ambiguous thiserror annotation for thiserror 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
sd2k committed Nov 25, 2024
1 parent 09ab728 commit 00ac253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/augurs-prophet/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}")]
Expand Down

0 comments on commit 00ac253

Please sign in to comment.