Skip to content

Commit

Permalink
Update thiserror requirement from 1.0.31 to 2.0.9 (#80)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mikhail Glushenkov <[email protected]>
  • Loading branch information
dependabot[bot] and 23Skidoo authored Jan 6, 2025
1 parent 681ea5b commit 7d0df9e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion positional/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pad = "0.1.6"
positional_derive = {version = "=0.4.3", path = "../positional_derive"}
proc-macro2 = "1.0.39"
quote = "1.0"
thiserror = "1.0.31"
thiserror = "2.0.9"

[dev-dependencies]
chrono = "0.4.19"
Expand Down
2 changes: 1 addition & 1 deletion positional/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub enum PositionalError {
UnmatchedVariant(String),

#[error(
"Given row `{1}` has length {}; expected length: {0}", .1.len()
"Given row `{1}` has length {n}; expected length: {0}", n = .1.len()
)]
RowSizeError(usize, String),

Expand Down
1 change: 0 additions & 1 deletion positional/src/field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use pad::{Alignment, PadStr};
use std::fmt::Display;

#[doc(hidden)]

/// a trait to represent a type that could be converted to a positional field
///
/// There is a generic implementation for types that implements Display
Expand Down
1 change: 0 additions & 1 deletion positional/src/parsed_field.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#[doc(hidden)]

/// a single field ready to be parsed from a positional row
pub struct PositionalParsedField<'s> {
row: &'s str,
Expand Down

0 comments on commit 7d0df9e

Please sign in to comment.