Skip to content

Commit

Permalink
docs: fix doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Jun 28, 2022
1 parent ba2544f commit a92a73e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ethers-core/src/types/other.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ impl OtherFields {
/// ```
pub fn get_with<F, V>(&self, key: impl AsRef<str>, with: F) -> Option<V>
where
V: DeserializeOwned,
F: FnOnce(serde_json::Value) -> V,
{
self.inner.get(key.as_ref()).cloned().map(with)
Expand Down Expand Up @@ -78,7 +77,6 @@ impl OtherFields {
/// **Note:** this will also remove the value if deserializing it resulted in an error
pub fn remove_with<F, V>(&mut self, key: impl AsRef<str>, with: F) -> Option<V>
where
V: DeserializeOwned,
F: FnOnce(serde_json::Value) -> V,
{
self.inner.remove(key.as_ref()).map(with)
Expand Down

0 comments on commit a92a73e

Please sign in to comment.