Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
[meta] fix clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshowers committed Aug 31, 2022
1 parent c489ddd commit b235cb6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions guppy/src/graph/graph_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1481,9 +1481,8 @@ impl<'g> ExternalSource<'g> {
} else if let Some(rest) = source.strip_prefix(Self::GIT_PLUS) {
// A Git source.
// Look for a trailing #, which indicates the resolved revision.
let mut split_rev = rest.rsplitn(2, '#');
let resolved = split_rev.next()?;
let rest = split_rev.next()?;
let (rest, resolved) = rest.rsplit_once('#')?;

let (repository, req) = if let Some(idx) = rest.find(Self::BRANCH_EQ) {
(
&rest[..idx],
Expand Down
2 changes: 1 addition & 1 deletion target-spec/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl error::Error for ExpressionParseError {
/// An error returned while parsing a single target.
///
/// This is caused by a triple not being understood by either `cfg-expr` or `target-lexicon`.
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Eq)]
pub struct TripleParseError {
triple_str: Cow<'static, str>,
lexicon_err: cfg_expr::target_lexicon::ParseError,
Expand Down
2 changes: 1 addition & 1 deletion tools/cargo-hakari/src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ fn stderr_supports_color() -> bool {
}
}

#[derive(Copy, Clone, Debug, PartialEq)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
#[must_use]
pub enum Color {
Auto,
Expand Down

0 comments on commit b235cb6

Please sign in to comment.