style: apply fmt to entire workspace
This commit is contained in:
parent
1b6cbbc095
commit
336d2400f4
23 changed files with 111 additions and 67 deletions
|
|
@ -9,9 +9,20 @@ use pallas_machines::{
|
|||
use crate::{BlockBody, Message, State, Tip, WrappedHeader};
|
||||
|
||||
/// An observer of chain-sync events sent by the state-machine
|
||||
pub trait Observer<C> where C: Debug {
|
||||
fn on_block(&self, cursor: &Option<Point>, content: &C) -> Result<(), Box<dyn std::error::Error>> {
|
||||
log::debug!("asked to save block content {:?} at cursor {:?}", content, cursor);
|
||||
pub trait Observer<C>
|
||||
where
|
||||
C: Debug,
|
||||
{
|
||||
fn on_block(
|
||||
&self,
|
||||
cursor: &Option<Point>,
|
||||
content: &C,
|
||||
) -> Result<(), Box<dyn std::error::Error>> {
|
||||
log::debug!(
|
||||
"asked to save block content {:?} at cursor {:?}",
|
||||
content,
|
||||
cursor
|
||||
);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue