Skip to content

Commit

Permalink
Add Eq + Hash to BlockIdExt
Browse files Browse the repository at this point in the history
  • Loading branch information
hacker-volodya authored May 3, 2024
1 parent 9adac48 commit 3059856
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions liteapi/src/tl/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub struct BlockId {

/// tonNode.blockIdExt workchain:int shard:long seqno:int root_hash:int256 file_hash:int256 = tonNode.BlockIdExt;
#[derive(TlRead, TlWrite, Derivative)]

Check failure on line 83 in liteapi/src/tl/common.rs

View workflow job for this annotation

GitHub Actions / Clippy

the trait bound `tl::common::Int256: std::hash::Hash` is not satisfied

Check failure on line 83 in liteapi/src/tl/common.rs

View workflow job for this annotation

GitHub Actions / Check

the trait bound `common::Int256: Hash` is not satisfied
#[derivative(Debug, Clone, PartialEq)]
#[derivative(Debug, Clone, PartialEq, Eq, Hash)]
pub struct BlockIdExt {
pub workchain: i32,
pub shard: u64,
Expand Down Expand Up @@ -189,4 +189,4 @@ pub struct TransactionId {
pub lt: Option<u64>,
#[tl(flags_bit = "mode.2")]
pub hash: Option<Int256>,
}
}

0 comments on commit 3059856

Please sign in to comment.