Skip to content

Commit 5c640c9

Browse files
committed
cargo fmt
1 parent 5d2d52c commit 5c640c9

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

lib/sqlsync/src/coordinator.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ impl<J: Journal, R: Reducer> CoordinatorDocument<J, R> {
127127

128128
/// CoordinatorDocument knows how to replicate it's storage journal
129129
impl<J: Journal + ReplicationSource, R> ReplicationSource for CoordinatorDocument<J, R> {
130-
type Reader<'a> = <J as ReplicationSource>::Reader<'a>
130+
type Reader<'a>
131+
= <J as ReplicationSource>::Reader<'a>
131132
where
132133
Self: 'a;
133134

lib/sqlsync/src/journal/memory.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ impl Journal for MemoryJournal {
7373
}
7474

7575
impl Scannable for MemoryJournal {
76-
type Reader<'a> = &'a [u8]
76+
type Reader<'a>
77+
= &'a [u8]
7778
where
7879
Self: 'a;
7980

@@ -95,7 +96,8 @@ impl Scannable for MemoryJournal {
9596
}
9697

9798
impl ReplicationSource for MemoryJournal {
98-
type Reader<'a> = &'a [u8]
99+
type Reader<'a>
100+
= &'a [u8]
99101
where
100102
Self: 'a;
101103

lib/sqlsync/src/local.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ where
132132

133133
/// LocalDocument knows how to send it's timeline journal elsewhere
134134
impl<J: ReplicationSource, S> ReplicationSource for LocalDocument<J, S> {
135-
type Reader<'a> = <J as ReplicationSource>::Reader<'a>
135+
type Reader<'a>
136+
= <J as ReplicationSource>::Reader<'a>
136137
where
137138
Self: 'a;
138139

lib/sqlsync/src/storage.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,8 @@ impl<J: Journal> Storage<J> {
346346
}
347347

348348
impl<J: ReplicationSource> ReplicationSource for Storage<J> {
349-
type Reader<'a> = <J as ReplicationSource>::Reader<'a>
349+
type Reader<'a>
350+
= <J as ReplicationSource>::Reader<'a>
350351
where
351352
Self: 'a;
352353

0 commit comments

Comments
 (0)