@@ -2,7 +2,7 @@ use capnp::message::{Builder, HeapAllocator};
|
||||
use capnp::message::{ReaderOptions, TypedReader};
|
||||
use capnp::serialize::{self, SliceSegments};
|
||||
|
||||
use capnp::traits::{Owned};
|
||||
use capnp::traits::Owned;
|
||||
use churn_domain::{Agent, LogEvent};
|
||||
|
||||
mod models_capnp;
|
||||
@@ -14,7 +14,6 @@ pub trait CapnpPackExt {
|
||||
fn deserialize_capnp(content: &Vec<u8>) -> anyhow::Result<Self::Return>;
|
||||
|
||||
fn capnp_to_string(builder: &Builder<HeapAllocator>) -> Vec<u8> {
|
||||
|
||||
serialize::write_message_to_words(builder)
|
||||
}
|
||||
|
||||
@@ -26,8 +25,6 @@ pub trait CapnpPackExt {
|
||||
serialize::read_message_from_flat_slice(&mut content.as_slice(), ReaderOptions::new())
|
||||
.unwrap();
|
||||
|
||||
|
||||
|
||||
log_event.into_typed::<S>()
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user