Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Clippy lints #1329

Merged
merged 7 commits into from
Jul 1, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
move relay-general macros to explicit imports
untitaker committed Jul 1, 2022
commit 26fd912b570cdd2982eb6b02114a12dfff789ced
1 change: 0 additions & 1 deletion relay-general/src/lib.rs
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@
#[macro_use]
extern crate relay_general_derive;

#[macro_use]
mod macros;

#[cfg(test)]
2 changes: 2 additions & 0 deletions relay-general/src/macros.rs
Original file line number Diff line number Diff line change
@@ -47,6 +47,8 @@ macro_rules! derive_string_meta_structure {
};
}

pub(crate) use derive_string_meta_structure;

/// Implements FromStr and Display on a flat/C-like enum such that strings roundtrip correctly and
/// all variants can be FromStr'd.
///
1 change: 1 addition & 0 deletions relay-general/src/processor/attrs.rs
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ use enumset::{EnumSet, EnumSetType};
use failure::Fail;
use smallvec::SmallVec;

use crate::macros::derive_fromstr_and_display;
use crate::processor::{ProcessValue, SelectorPathItem, SelectorSpec};
use crate::types::Annotated;

1 change: 1 addition & 0 deletions relay-general/src/protocol/event.rs
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ use schemars::schema::Schema;

use serde::{Serialize, Serializer};

use crate::macros::derive_string_meta_structure;
use crate::processor::ProcessValue;
use crate::protocol::{
Breadcrumb, Breakdowns, ClientSdkInfo, Contexts, Csp, DebugMeta, Exception, ExpectCt,
1 change: 1 addition & 0 deletions relay-general/src/protocol/security_report.rs
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ use serde::de::{Error, IgnoredAny};
use serde::{Deserialize, Serialize};
use url::Url;

use crate::macros::derive_fromstr_and_display;
use crate::protocol::{
Event, HeaderName, HeaderValue, Headers, LogEntry, PairList, Request, TagEntry, Tags,
};
1 change: 1 addition & 0 deletions relay-general/src/protocol/session.rs
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ use failure::Fail;
use serde::{Deserialize, Serialize};
use uuid::Uuid;

use crate::macros::derive_fromstr_and_display;
use crate::protocol::IpAddr;

/// The type of session event we're dealing with.
1 change: 1 addition & 0 deletions relay-general/src/types/impls.rs
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@ use serde::ser::{SerializeMap, SerializeSeq};
use serde::{Serialize, Serializer};
use uuid::Uuid;

use crate::macros::derive_string_meta_structure;
use crate::types::{
Annotated, Array, Empty, Error, FromValue, IntoValue, Map, Meta, MetaMap, MetaTree, Object,
SkipSerialization, Value,