Skip to content

Commit

Permalink
Fix some new warnings on nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlattimore committed Mar 12, 2024
1 parent 5304adc commit 91720d3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
11 changes: 0 additions & 11 deletions src/checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,17 +602,6 @@ mod tests {
use super::*;
use crate::config::testing::parse;
use crate::symbol::Symbol;
use std::fmt::Debug;
use std::fmt::Display;

// Wraps a type T and makes it implement Debug by deferring to the Display implementation of T.
struct DebugAsDisplay<T: Display>(T);

impl<T: Display> Debug for DebugAsDisplay<T> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.0)
}
}

fn checker_for_testing() -> Checker {
Checker::new(
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#![forbid(unsafe_code)]
#![cfg_attr(not(feature = "ui"), allow(dead_code, unused_variables))]
#![allow(clippy::assigning_clones)]

mod build_script_checker;
mod checker;
Expand Down
6 changes: 0 additions & 6 deletions src/problem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ pub(crate) enum Problem {
NewConfigVersionAvailable(i64),
}

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub(crate) struct ErrorDetails {
pub(crate) short: String,
pub(crate) detail: String,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub(crate) struct BinExecutionFailed {
pub(crate) crate_sel: CrateSel,
Expand Down

0 comments on commit 91720d3

Please sign in to comment.