Skip to content

Commit 518217d

Browse files
committed
chore: rustfmt
1 parent 0c447f0 commit 518217d

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/binary/rkyv.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
use crate::{Decoder, Encoder};
2-
use std::error::Error;
3-
use std::sync::Arc;
2+
use rkyv::api::high::{HighSerializer, HighValidator};
3+
use rkyv::de::Pool;
44
use rkyv::rancor::{Fallible, Strategy};
55
use rkyv::ser::allocator::ArenaHandle;
66
use rkyv::{bytecheck, rancor, Archive, Deserialize, Serialize};
7-
use rkyv::api::high::{HighSerializer, HighValidator};
8-
use rkyv::de::Pool;
7+
use std::error::Error;
8+
use std::sync::Arc;
99

1010
/// A codec that relies on `rkyv` to encode data in the msgpack format.
1111
///
@@ -14,7 +14,7 @@ pub struct RkyvCodec;
1414

1515
impl<T> Encoder<T> for RkyvCodec
1616
where
17-
T: for<'a> Serialize<HighSerializer<Vec<u8>, ArenaHandle<'a>, rancor::Error>>
17+
T: for<'a> Serialize<HighSerializer<Vec<u8>, ArenaHandle<'a>, rancor::Error>>,
1818
{
1919
type Error = rancor::Error;
2020
type Encoded = Vec<u8>;
@@ -27,9 +27,9 @@ where
2727
impl<T> Decoder<T> for RkyvCodec
2828
where
2929
T: Archive,
30-
for<'a> T::Archived:
31-
'a + bytecheck::CheckBytes<HighValidator<'a, rancor::Error>> + Deserialize<T, Strategy<Pool, rancor::Error>>
32-
30+
for<'a> T::Archived: 'a
31+
+ bytecheck::CheckBytes<HighValidator<'a, rancor::Error>>
32+
+ Deserialize<T, Strategy<Pool, rancor::Error>>,
3333
{
3434
type Error = Arc<dyn Error>;
3535
type Encoded = [u8];

0 commit comments

Comments
 (0)