Skip to content

Commit

Permalink
Update crates/tinyvec-embed/src/error.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Luc Georges <McPatate@users.noreply.github.com>
  • Loading branch information
Wats0ns and McPatate authored Feb 29, 2024
1 parent bd4ba90 commit 6f0ac2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/tinyvec-embed/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ pub enum Error {
InvalidFileName,
#[error("io error: {0}")]
Io(#[from] std::io::Error),
#[error("expected value to be a valid number, got: {0}")]
ValueNotNumber(Value),
#[error("expected value to be string, got: {0}")]
ValueNotString(Value),
#[error("expected value to be a valid size, got: {0}")]
ValueNotUsize(Value),
}

pub type Result<T> = std::result::Result<T, Error>;

0 comments on commit 6f0ac2c

Please sign in to comment.