Skip to content

Commit

Permalink
Merge pull request #17 from near/feat/lint-issues
Browse files Browse the repository at this point in the history
fixed lint issue with lifetimes
  • Loading branch information
EdsonAlcala authored Dec 6, 2024
2 parents f2ca4e2 + 5b6e2d8 commit 63f6642
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/bitcoin/types/lock_time/lock_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl<'de> Deserialize<'de> for LockTime {
{
struct StringOrNumberVisitor;

impl<'de> serde::de::Visitor<'de> for StringOrNumberVisitor {
impl serde::de::Visitor<'_> for StringOrNumberVisitor {
type Value = LockTime;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion src/bitcoin/types/script_buf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl<'de> serde::Deserialize<'de> for ScriptBuf {
} else {
struct BytesVisitor;

impl<'de> serde::de::Visitor<'de> for BytesVisitor {
impl serde::de::Visitor<'_> for BytesVisitor {
type Value = ScriptBuf;

fn expecting(&self, formatter: &mut Formatter) -> fmt::Result {
Expand Down
4 changes: 2 additions & 2 deletions src/bitcoin/types/tx_in/witness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl<'a> Iterator for Iter<'a> {
}
}

impl<'a> ExactSizeIterator for Iter<'a> {}
impl ExactSizeIterator for Iter<'_> {}

impl<'a> IntoIterator for &'a Witness {
type IntoIter = Iter<'a>;
Expand Down Expand Up @@ -263,7 +263,7 @@ fn resize_if_needed(vec: &mut Vec<u8>, required_len: usize) {

pub struct SerializeBytesAsHex<'a>(pub(crate) &'a [u8]);

impl<'a> Serialize for SerializeBytesAsHex<'a> {
impl Serialize for SerializeBytesAsHex<'_> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
Expand Down
2 changes: 1 addition & 1 deletion src/bitcoin/types/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ impl<'de> Deserialize<'de> for Version {
{
struct StringOrNumberVisitor;

impl<'de> serde::de::Visitor<'de> for StringOrNumberVisitor {
impl serde::de::Visitor<'_> for StringOrNumberVisitor {
type Value = Version;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down
4 changes: 2 additions & 2 deletions src/near/types/integers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl<'de> Deserialize<'de> for U64 {
{
struct StringOrNumberVisitor;

impl<'de> serde::de::Visitor<'de> for StringOrNumberVisitor {
impl serde::de::Visitor<'_> for StringOrNumberVisitor {
type Value = U64;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down Expand Up @@ -64,7 +64,7 @@ impl<'de> Deserialize<'de> for U128 {
{
struct StringOrNumberVisitor;

impl<'de> serde::de::Visitor<'de> for StringOrNumberVisitor {
impl serde::de::Visitor<'_> for StringOrNumberVisitor {
type Value = U128;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down

0 comments on commit 63f6642

Please sign in to comment.