Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Guardiani <[email protected]>
  • Loading branch information
slinkydeveloper committed Apr 29, 2021
1 parent 1205963 commit 21e2506
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 16 deletions.
3 changes: 1 addition & 2 deletions src/event/attributes.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use super::{
AttributesIntoIteratorV03, AttributesIntoIteratorV10, AttributesV03, AttributesV10,
types::*, AttributesIntoIteratorV03, AttributesIntoIteratorV10, AttributesV03, AttributesV10,
ExtensionValue, SpecVersion,
types::*
};
use chrono::{DateTime, Utc};
use serde::Serializer;
Expand Down
4 changes: 2 additions & 2 deletions src/event/builder.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use snafu::Snafu;
use super::Event;
use super::types;
use super::Event;
use snafu::Snafu;

/// Trait to implement a builder for [`Event`]:
/// ```
Expand Down
2 changes: 1 addition & 1 deletion src/event/types.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pub use self::uri::Uri;
pub use self::uri::ParseUriError;
pub use self::uri::TryIntoUri;
pub use self::uri::Uri;

pub use urireference::UriReference;

Expand Down
2 changes: 1 addition & 1 deletion src/event/v03/attributes.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::event::attributes::{default_hostname, AttributeValue, AttributesConverter};
use crate::event::types::*;
use crate::event::{AttributesReader, AttributesV10, AttributesWriter, SpecVersion};
use crate::message::{BinarySerializer, MessageAttributeValue};
use crate::event::types::*;
use uuid::Uuid;

pub(crate) const ATTRIBUTE_NAMES: [&str; 8] = [
Expand Down
6 changes: 2 additions & 4 deletions src/event/v03/builder.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
use super::Attributes as AttributesV03;
use crate::event::{
Attributes, Data, Event, EventBuilderError, ExtensionValue
};
use crate::message::MessageAttributeValue;
use crate::event::types::*;
use crate::event::{Attributes, Data, Event, EventBuilderError, ExtensionValue};
use crate::message::MessageAttributeValue;
use std::collections::HashMap;
use std::convert::TryInto;

Expand Down
2 changes: 1 addition & 1 deletion src/event/v03/format.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::Attributes;
use crate::event::data::is_json_content_type;
use crate::event::{Data, ExtensionValue};
use crate::event::types::*;
use crate::event::{Data, ExtensionValue};
use serde::de::IntoDeserializer;
use serde::ser::SerializeMap;
use serde::{Deserialize, Serializer};
Expand Down
2 changes: 1 addition & 1 deletion src/event/v10/attributes.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::event::attributes::{default_hostname, AttributeValue, AttributesConverter};
use crate::event::types::*;
use crate::event::{AttributesReader, AttributesV03, AttributesWriter, SpecVersion, UriReference};
use crate::message::{BinarySerializer, MessageAttributeValue};
use crate::event::types::*;
use core::fmt::Debug;
use uuid::Uuid;

Expand Down
2 changes: 1 addition & 1 deletion src/event/v10/builder.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use super::Attributes as AttributesV10;
use crate::event::types::*;
use crate::event::{
Attributes, Data, Event, EventBuilderError, ExtensionValue, TryIntoTime, TryIntoUri,
UriReference,
};
use crate::message::MessageAttributeValue;
use crate::event::types::*;
use std::collections::HashMap;
use std::convert::TryInto;

Expand Down
2 changes: 1 addition & 1 deletion src/event/v10/format.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::Attributes;
use crate::event::data::is_json_content_type;
use crate::event::{Data, ExtensionValue};
use crate::event::types::*;
use crate::event::{Data, ExtensionValue};
use serde::de::IntoDeserializer;
use serde::ser::SerializeMap;
use serde::{Deserialize, Serializer};
Expand Down
2 changes: 1 addition & 1 deletion src/message/error.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use snafu::Snafu;
use crate::event::types;
use snafu::Snafu;

/// Represents an error during serialization/deserialization process
#[derive(Debug, Snafu)]
Expand Down
2 changes: 1 addition & 1 deletion src/message/types.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::event::types::*;
use crate::event::ExtensionValue;
use std::convert::TryInto;
use std::fmt;
use crate::event::types::*;

/// Union type representing a [CloudEvent context attribute type](https://github.com/cloudevents/spec/blob/v1.0/spec.md#type-system).
#[derive(PartialEq, Eq, Debug, Clone)]
Expand Down

0 comments on commit 21e2506

Please sign in to comment.