Skip to content

Commit 1f45365

Browse files
authored
style(rt): removing empty_structs_with_brackets lint (#4088)
1 parent 92b6edc commit 1f45365

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ collapsible_match = "allow"
122122
decimal_literal_representation = "allow" # TODO: consider
123123
default_trait_access = "allow"
124124
else_if_without_else = "allow"
125-
empty_structs_with_brackets = "allow" # TODO: easy fix
126125
enum_glob_use = "allow"
127126
explicit_iter_loop = "allow" # TODO: easy fix
128127
float_arithmetic = "allow"

src/rt/timer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ impl dyn Sleep {
107107
where
108108
T: Sleep + 'static,
109109
{
110-
self.__type_id(private::Sealed {}) == TypeId::of::<T>()
110+
self.__type_id(private::Sealed) == TypeId::of::<T>()
111111
}
112112

113113
/// Downcast a pinned `&mut Sleep` object to its original type.
@@ -130,5 +130,5 @@ impl dyn Sleep {
130130

131131
mod private {
132132
#![allow(missing_debug_implementations)]
133-
pub struct Sealed {}
133+
pub struct Sealed;
134134
}

0 commit comments

Comments
 (0)