Skip to content

Commit

Permalink
reduce diff noise
Browse files Browse the repository at this point in the history
  • Loading branch information
mina86 committed Oct 13, 2023
1 parent 6a38919 commit d0584b5
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
*.rs.bk
.DS_Store
.anchor
Cargo.lock
/dist/
.DS_Store
*.rs.bk
Cargo.lock
local-ibc
node_modules
package-lock.json
target
test-ledger
local-ibc
1 change: 1 addition & 0 deletions common/lib/src/varint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ impl borsh::BorshDeserialize for VarInt<u32> {
}
}


/// Small on-stack buffer.
///
/// # Example
Expand Down
1 change: 1 addition & 0 deletions common/sealable-trie/src/nodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ impl<'a> ValueRef<'a, bool> {
pub fn sealed(self) -> Self { Self { is_sealed: true, hash: self.hash } }
}


// =============================================================================
// Conversions

Expand Down
1 change: 1 addition & 0 deletions common/sealable-trie/src/proof/serialisation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ fn invalid_data(msg: String) -> io::Error {
io::Error::new(io::ErrorKind::InvalidData, msg)
}


#[test]
fn test_item_borsh() {
#[track_caller]
Expand Down
1 change: 1 addition & 0 deletions common/sealable-trie/src/trie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ impl<A: memory::Allocator<Value = Value>> Trie<A> {
}
}


#[cfg(test)]
impl Trie<memory::test_utils::TestAllocator<Value>> {
/// Creates a test trie using a TestAllocator with given capacity.
Expand Down
1 change: 1 addition & 0 deletions solana/trie-example/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ impl<T> TrieResultExt for Result<T, sealable_trie::trie::Error> {
}
}


/// Instruction to execute.
pub(crate) enum Instruction<'a> {
// Encoding: <include-proof> <key>
Expand Down
3 changes: 3 additions & 0 deletions solana/trie-example/src/trie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ impl<'a, 'b> memory::Allocator for Allocator<'a, 'b> {
}
}



impl<'a, 'b> core::ops::Deref for AccountTrie<'a, 'b> {
type Target = sealable_trie::Trie<Allocator<'a, 'b>>;
fn deref(&self) -> &Self::Target { &self.0 }
Expand Down Expand Up @@ -247,6 +249,7 @@ fn write<const L: usize, const R: usize, const N: usize>(
right
}


#[test]
fn test_header_encoding() {
const ONE: CryptoHash = CryptoHash([1; 32]);
Expand Down

0 comments on commit d0584b5

Please sign in to comment.