Skip to content

Commit

Permalink
chore: remove anyhow dependency in types (#1398)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jun 7, 2024
1 parent 251c549 commit 5a6cb04
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ readme.workspace = true
publish = true

[dependencies]
anyhow = "1"
beef = { version = "0.5.1", features = ["impl_serde"] }
serde = { version = "1", default-features = false, features = ["derive"] }
serde_json = { version = "1", default-features = false, features = ["alloc", "raw_value", "std"] }
Expand Down
3 changes: 1 addition & 2 deletions types/src/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
use std::fmt;

use anyhow::anyhow;
use beef::Cow;
use serde::de::{self, Deserializer, Unexpected, Visitor};
use serde::ser::Serializer;
Expand Down Expand Up @@ -225,7 +224,7 @@ impl<'a> ParamsSequence<'a> {
{
match self.next_inner() {
Some(result) => result,
None => Err(invalid_params(anyhow!("No more params"))),
None => Err(invalid_params("No more params")),
}
}

Expand Down

0 comments on commit 5a6cb04

Please sign in to comment.