Fix style issues

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/32/head
trivernis 3 years ago
parent e316d29807
commit 619a0173f0
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -3,7 +3,7 @@ use criterion::{criterion_group, criterion_main};
use criterion::{BatchSize, Criterion}; use criterion::{BatchSize, Criterion};
use std::io::Cursor; use std::io::Cursor;
use bromine::event::{Event, EventType}; use bromine::event::{Event};
use tokio::runtime::Runtime; use tokio::runtime::Runtime;
pub const EVENT_NAME: &str = "bench_event"; pub const EVENT_NAME: &str = "bench_event";

@ -2,23 +2,23 @@ pub mod emit_metadata;
pub mod emit_metadata_with_response; pub mod emit_metadata_with_response;
mod event_metadata; mod event_metadata;
use std::future::Future;
use std::mem;
use std::ops::DerefMut;
use std::pin::Pin;
use std::sync::Arc; use std::sync::Arc;
use std::task::Poll;
use std::time::Duration;
use emit_metadata::EmitMetadata; use emit_metadata::EmitMetadata;
use event_metadata::EventMetadata;
use futures::future;
use futures::future::Either;
use tokio::io::{AsyncWrite, AsyncWriteExt}; use tokio::io::{AsyncWrite};
use tokio::sync::Mutex; use tokio::sync::Mutex;
use tracing; use tracing;
use crate::error::Result;
use crate::event::EventType; use crate::event::EventType;
use crate::ipc::context::Context; use crate::ipc::context::Context;
use crate::payload::IntoPayload; use crate::payload::IntoPayload;

@ -2,6 +2,8 @@
use bromine::prelude::*; use bromine::prelude::*;
#[cfg(feature = "serialize")] #[cfg(feature = "serialize")]
use serde::{de::DeserializeOwned, Serialize}; use serde::{de::DeserializeOwned, Serialize};
#[cfg(feature = "serialize")]
use std::fmt::Debug; use std::fmt::Debug;
#[cfg(feature = "serialize_rmp")] #[cfg(feature = "serialize_rmp")]

Loading…
Cancel
Save