From 91720d3b5bb62edd208e31953a02148d5c294916 Mon Sep 17 00:00:00 2001 From: David Lattimore Date: Wed, 13 Mar 2024 07:28:08 +1100 Subject: [PATCH] Fix some new warnings on nightly --- src/checker.rs | 11 ----------- src/main.rs | 1 + src/problem.rs | 6 ------ 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/src/checker.rs b/src/checker.rs index 093a828..af1616b 100644 --- a/src/checker.rs +++ b/src/checker.rs @@ -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); - - impl Debug for DebugAsDisplay { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "{}", self.0) - } - } fn checker_for_testing() -> Checker { Checker::new( diff --git a/src/main.rs b/src/main.rs index 85a07fd..0304335 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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; diff --git a/src/problem.rs b/src/problem.rs index 4bc3f2f..a357851 100644 --- a/src/problem.rs +++ b/src/problem.rs @@ -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,