diff --git a/.travis.yml b/.travis.yml index 809c9e1..523c9f8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,19 +6,21 @@ rust: - beta - nightly env: - - CARGO_FEATURES="" - - CARGO_FEATURES="codespan" - - CARGO_FEATURES="default" - - CARGO_FEATURES="default codespan" + - MONIKER_CARGO_FEATURES="" + - MONIKER_CARGO_FEATURES="codespan" matrix: allow_failures: - rust: nightly script: - - cargo build --no-default-features --features "$CARGO_FEATURES" --verbose - - cargo test --no-default-features --features "$CARGO_FEATURES" --verbose - - bash -c 'if [[ $CARGO_FEATURES = *"default"* ]]; then - cargo test --no-default-features --features "$CARGO_FEATURES" --examples --verbose; - fi' + # moniker-derive + - cargo build --manifest-path=moniker-derive/Cargo.toml --verbose + - cargo test --manifest-path=moniker-derive/Cargo.toml --verbose + # moniker + - cargo build --manifest-path=moniker/Cargo.toml --features="$MONIKER_CARGO_FEATURES" --verbose + - cargo test --manifest-path=moniker/Cargo.toml --features="$MONIKER_CARGO_FEATURES" --verbose + # moniker examples + - cargo build --manifest-path=moniker/Cargo.toml --features="$MONIKER_CARGO_FEATURES" --verbose --examples + - cargo test --manifest-path=moniker/Cargo.toml --features="$MONIKER_CARGO_FEATURES" --verbose --examples notifications: webhooks: urls: diff --git a/moniker/src/bound.rs b/moniker/src/bound.rs index 4373697..bcb7a85 100644 --- a/moniker/src/bound.rs +++ b/moniker/src/bound.rs @@ -193,7 +193,7 @@ impl_bound_term_partial_eq!(f64); macro_rules! impl_bound_term_ignore { ($T:ty) => { impl BoundTerm for $T { - fn term_eq(&self, other: &$T) -> bool { + fn term_eq(&self, _: &$T) -> bool { true } @@ -227,7 +227,7 @@ impl_bound_term_ignore!(LineOffset); #[cfg(feature = "codespan")] impl BoundTerm for Span { - fn term_eq(&self, other: &Span) -> bool { + fn term_eq(&self, _: &Span) -> bool { true } @@ -645,7 +645,7 @@ impl_bound_pattern_partial_eq!(f64); macro_rules! impl_bound_pattern_ignore { ($T:ty) => { impl BoundPattern for $T { - fn pattern_eq(&self, other: &$T) -> bool { + fn pattern_eq(&self, _: &$T) -> bool { true } @@ -688,8 +688,8 @@ impl_bound_pattern_ignore!(LineNumber); impl_bound_pattern_ignore!(LineOffset); #[cfg(feature = "codespan")] -impl BoundTerm for Span { - fn pattern_eq(&self, other: &Span) -> bool { +impl BoundPattern for Span { + fn pattern_eq(&self, _: &Span) -> bool { true }