Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Urhengulas committed Aug 12, 2022
1 parent 9afa475 commit d1b96df
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/backtrace/mod.rs
Expand Up @@ -87,7 +87,7 @@ pub fn print(
}

/// Target program outcome
#[derive(Clone, Copy, Debug, PartialEq)]
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum Outcome {
HardFault,
Ok,
Expand Down
2 changes: 1 addition & 1 deletion src/dep/cratesio.rs
Expand Up @@ -2,7 +2,7 @@ use std::path::{self, Component, Path as StdPath, PathBuf};

use colored::Colorize as _;

#[derive(Debug, PartialEq)]
#[derive(Debug, Eq, PartialEq)]
pub struct Path<'p> {
registry_prefix: PathBuf,
crate_name_version: &'p str,
Expand Down
2 changes: 1 addition & 1 deletion src/dep/mod.rs
Expand Up @@ -10,7 +10,7 @@ mod rust_repo;
mod rust_std;
mod rustc;

#[derive(Debug, PartialEq)]
#[derive(Debug, Eq, PartialEq)]
pub enum Path<'p> {
Cratesio(cratesio::Path<'p>),
/// Path into `rust-std` component
Expand Down
4 changes: 2 additions & 2 deletions src/dep/rust_repo.rs
Expand Up @@ -3,7 +3,7 @@ use std::path::{self, Path as StdPath};
use colored::Colorize as _;

/// Representation of a rust-lang/rust repo path
#[derive(Debug, PartialEq)]
#[derive(Debug, Eq, PartialEq)]
pub enum Path<'p> {
One52(One52Path<'p>),
Verbatim(&'p StdPath),
Expand Down Expand Up @@ -34,7 +34,7 @@ impl<'p> Path<'p> {
}

/// rust-lang/repo path format as of 1.52 e.g. "library/core/src/panic.rs"
#[derive(Debug, PartialEq)]
#[derive(Debug, Eq, PartialEq)]
pub struct One52Path<'p> {
pub library: &'p str,
pub crate_name: &'p str,
Expand Down
2 changes: 1 addition & 1 deletion src/dep/rust_std.rs
Expand Up @@ -8,7 +8,7 @@ use super::rust_repo;

mod toolchain;

#[derive(Debug, PartialEq)]
#[derive(Debug, Eq, PartialEq)]
pub struct Path<'p> {
rustup_prefix: PathBuf,
toolchain: Toolchain<'p>,
Expand Down
6 changes: 3 additions & 3 deletions src/dep/rust_std/toolchain.rs
Expand Up @@ -2,7 +2,7 @@ use std::borrow::Cow;

use colored::Colorize;

#[derive(Debug, PartialEq)]
#[derive(Debug, Eq, PartialEq)]
pub enum Toolchain<'p> {
One52(One52<'p>),
Verbatim(&'p str),
Expand Down Expand Up @@ -32,7 +32,7 @@ impl<'p> Toolchain<'p> {
}
}

#[derive(Debug, PartialEq)]
#[derive(Debug, Eq, PartialEq)]
pub struct One52<'p> {
pub channel: Channel<'p>,
pub host: &'p str,
Expand Down Expand Up @@ -113,7 +113,7 @@ impl<'p> One52<'p> {
}
}

#[derive(Debug, PartialEq)]
#[derive(Debug, Eq, PartialEq)]
pub enum Channel<'p> {
Beta,
Nightly { date: Option<&'p str> },
Expand Down
2 changes: 1 addition & 1 deletion src/dep/rustc.rs
Expand Up @@ -4,7 +4,7 @@ use colored::Colorize;

use super::rust_repo;

#[derive(Debug, PartialEq)]
#[derive(Debug, Eq, PartialEq)]
pub struct Path<'p> {
rustc_prefix: PathBuf,
rust_repo_path: rust_repo::Path<'p>,
Expand Down

0 comments on commit d1b96df

Please sign in to comment.