From 64eee882d9ff4d2d107d0501080af70a3c3a8030 Mon Sep 17 00:00:00 2001 From: Jose Torres Date: Sat, 30 May 2026 07:15:37 -0400 Subject: [PATCH] removing lint --- Cargo.toml | 1 - src/rt/timer.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 878618c35d..306c3ccddf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -122,7 +122,6 @@ collapsible_match = "allow" decimal_literal_representation = "allow" # TODO: consider default_trait_access = "allow" else_if_without_else = "allow" -empty_structs_with_brackets = "allow" # TODO: easy fix enum_glob_use = "allow" explicit_iter_loop = "allow" # TODO: easy fix float_arithmetic = "allow" diff --git a/src/rt/timer.rs b/src/rt/timer.rs index 944e5d34f7..fdd654fa45 100644 --- a/src/rt/timer.rs +++ b/src/rt/timer.rs @@ -107,7 +107,7 @@ impl dyn Sleep { where T: Sleep + 'static, { - self.__type_id(private::Sealed {}) == TypeId::of::() + self.__type_id(private::Sealed) == TypeId::of::() } /// Downcast a pinned `&mut Sleep` object to its original type. @@ -130,5 +130,5 @@ impl dyn Sleep { mod private { #![allow(missing_debug_implementations)] - pub struct Sealed {} + pub struct Sealed; }