File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed
Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 3737//!
3838//! ```
3939
40- use crate :: deserializer:: FlatElement ;
4140use crate :: types:: Array ;
41+ use crate :: types:: FlatElement ;
4242use crate :: types:: SnapshotResult ;
4343use crate :: types:: Str ;
4444use crate :: Element ;
Original file line number Diff line number Diff line change 2727//! by Sayan Nandan and this is the first client implementation of the protocol
2828//!
2929
30+ use crate :: types:: FlatElement ;
3031use crate :: RespCode ;
3132use std:: hint:: unreachable_unchecked;
3233
@@ -57,14 +58,6 @@ pub(super) struct Parser<'a> {
5758 buffer : & ' a [ u8 ] ,
5859}
5960
60- #[ derive( Debug , PartialEq ) ]
61- pub enum FlatElement {
62- String ( String ) ,
63- Binstr ( Vec < u8 > ) ,
64- RespCode ( RespCode ) ,
65- UnsignedInt ( u64 ) ,
66- }
67-
6861#[ derive( Debug , PartialEq ) ]
6962#[ non_exhaustive]
7063/// # Data Types
Original file line number Diff line number Diff line change 7676//!
7777//! ```
7878
79+ use crate :: RespCode ;
7980use crate :: Query ;
8081
8182/// Anything that implements this trait can be turned into a [`String`]. This trait is implemented
@@ -282,3 +283,11 @@ pub enum Str {
282283 Unicode ( String ) ,
283284 Binary ( Vec < u8 > ) ,
284285}
286+
287+ #[ derive( Debug , PartialEq ) ]
288+ pub enum FlatElement {
289+ String ( String ) ,
290+ Binstr ( Vec < u8 > ) ,
291+ RespCode ( RespCode ) ,
292+ UnsignedInt ( u64 ) ,
293+ }
You can’t perform that action at this time.
0 commit comments