feat: clear up some whitespace
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
0be57cc8b6
commit
cd4cd35d0c
@ -77,30 +77,30 @@ impl Node {
|
|||||||
for message in messages.iter() {
|
for message in messages.iter() {
|
||||||
tracing::trace!("node traverse visited message: {}", message);
|
tracing::trace!("node traverse visited message: {}", message);
|
||||||
let tokens: genco::lang::rust::Tokens = quote! {
|
let tokens: genco::lang::rust::Tokens = quote! {
|
||||||
impl ::crunch::traits::Serializer for $(message) {
|
impl ::crunch::traits::Serializer for $(message) {
|
||||||
fn serialize(&self) -> Result<Vec<u8>, ::crunch::errors::SerializeError> {
|
fn serialize(&self) -> Result<Vec<u8>, ::crunch::errors::SerializeError> {
|
||||||
Ok(self.encode_to_vec())
|
Ok(self.encode_to_vec())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
impl ::crunch::traits::Deserializer for $(message) {
|
impl ::crunch::traits::Deserializer for $(message) {
|
||||||
fn deserialize(raw: Vec<u8>) -> Result<Self, ::crunch::errors::DeserializeError>
|
fn deserialize(raw: Vec<u8>) -> Result<Self, ::crunch::errors::DeserializeError>
|
||||||
where
|
where
|
||||||
Self: Sized,
|
Self: Sized,
|
||||||
{
|
{
|
||||||
let output = Self::decode(raw.as_slice()).map_err(|e| ::crunch::errors::DeserializeError::ProtoErr(e))?;
|
let output = Self::decode(raw.as_slice()).map_err(|e| ::crunch::errors::DeserializeError::ProtoErr(e))?;
|
||||||
Ok(output)
|
Ok(output)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl crunch::traits::Event for $(message) {
|
impl crunch::traits::Event for $(message) {
|
||||||
fn event_info() -> ::crunch::traits::EventInfo {
|
fn event_info() -> ::crunch::traits::EventInfo {
|
||||||
::crunch::traits::EventInfo {
|
::crunch::traits::EventInfo {
|
||||||
domain: "my-domain",
|
domain: "my-domain",
|
||||||
entity_type: "my-entity-type",
|
entity_type: "my-entity-type",
|
||||||
event_name: "my-event-name",
|
event_name: "my-event-name",
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
message_tokens.push(tokens);
|
message_tokens.push(tokens);
|
||||||
|
Loading…
Reference in New Issue
Block a user