Repositories

grarr

(mirrored on github)

Wim Looman <wim@nemo157.com>
f4e805 Ignore some clippy false positives
Wim Looman committed at 2016-03-01 22:21:04

Modified src/render/diff.rs

@@ -245,6 +245,7 @@ fn group(diff: &git2::Diff) -> Result<Vec<(DiffDelta, Vec<(DiffHunk, Vec<DiffLin
impl Eq for Delta { }
impl PartialEq<Delta> for Delta {
#[cfg_attr(feature = "clippy", allow(match_same_arms))]
fn eq(&self, other: &Delta) -> bool {
match (self.0, other.0) {
(git2::Delta::Unmodified, git2::Delta::Unmodified) => true,

Modified src/render/tree.rs

@@ -109,6 +109,7 @@ impl<T: Sized> Tapable for T {
struct Sorter(Option<ObjectType>);
impl Ord for Sorter {
#[cfg_attr(feature = "clippy", allow(match_same_arms))]
fn cmp(&self, other: &Self) -> Ordering {
match (self.0, other.0) {
(x, y) if x == y => Ordering::Equal,

Modified src/settings.rs

@@ -10,6 +10,7 @@ use iron::modifier::Modifier;
use typemap::Key;
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
#[cfg_attr(feature = "clippy", allow(enum_variant_names))] // Co-inkidink
pub enum Theme {
SolarizedDark,
SolarizedLight,