Skip to content

Commit

Permalink
Fmt, no_std
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Jan 26, 2024
1 parent 7ac99b4 commit 5d0af6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bindings/core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl Serialize for Error {
// Only Client and wallet have a proper serde impl
Self::Client(e) => serde_json::from_str(&serde_json::to_string(&e).expect("json to string error")).unwrap(),
Self::Wallet(e) => serde_json::from_str(&serde_json::to_string(&e).expect("json to string error")).unwrap(),
_ => self.to_string().into()
_ => self.to_string().into(),
};
seq.serialize_entry("error", &value)?;
seq.end()
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/types/block/slot/epoch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl EpochIndex {
/// Gets the range of slots this epoch contains.
pub fn slot_index_range(
&self,
genesis_slot: impl Into<SlotIndex> + std::marker::Copy,
genesis_slot: impl Into<SlotIndex> + Copy,
slots_per_epoch_exponent: u8,
) -> core::ops::RangeInclusive<SlotIndex> {
self.first_slot_index(genesis_slot, slots_per_epoch_exponent)
Expand Down

0 comments on commit 5d0af6d

Please sign in to comment.