File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " trevm"
3
- version = " 0.27.1 "
3
+ version = " 0.27.2 "
4
4
rust-version = " 1.83.0"
5
5
edition = " 2021"
6
6
authors = [" init4" ]
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ impl From<AcctDiff<'_>> for BundleAccount {
160
160
/// # fn make_index(bundle_state: &BundleState) -> Result<(), JournalDecodeError> {
161
161
/// let index = BundleStateIndex::from(bundle_state);
162
162
/// let serialized_index = index.encoded();
163
- /// let decoded = BundleStateIndex::decode(&mut serialized_index.as_slice ())?;
163
+ /// let decoded = BundleStateIndex::decode(&mut serialized_index.as_ref ())?;
164
164
/// assert_eq!(index, decoded);
165
165
/// # Ok(())
166
166
/// # }
Original file line number Diff line number Diff line change 31
31
//!
32
32
//! // We can serialize it and deserialize it :)
33
33
//! let serialized_index = index.encoded();
34
- //! let decoded = BundleStateIndex::decode(&mut serialized_index.as_slice ())?;
34
+ //! let decoded = BundleStateIndex::decode(&mut serialized_index.as_ref ())?;
35
35
//! assert_eq!(index, decoded);
36
36
//!
37
37
//! // It contains information about accounts
You can’t perform that action at this time.
0 commit comments