Skip to content

Commit 13baa4c

Browse files
committed
style: Make clippy happy
1 parent b37dbf7 commit 13baa4c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/function.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ use crate::Predicate;
1717

1818
/// Predicate that wraps a function over a reference that returns a `bool`.
1919
/// This type is returned by the `predicate::function` function.
20+
#[allow(clippy::derive_partial_eq_without_eq)]
2021
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
2122
pub struct FnPredicate<F, T>
2223
where

src/str/difference.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ where
9898
#[cfg(feature = "color")]
9999
fn colorize_diff(mut lines: Vec<String>, palette: crate::Palette) -> Vec<String> {
100100
for (i, line) in lines.iter_mut().enumerate() {
101-
match (i, line.as_bytes().get(0)) {
101+
match (i, line.as_bytes().first()) {
102102
(0, _) => {
103103
if let Some((prefix, body)) = line.split_once(' ') {
104104
*line = format!("{:#} {}", palette.expected(prefix), body);

0 commit comments

Comments
 (0)