mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Replace #[allow attributes with expect (#7796)
We do have `clippy::allow_attributes` turned on, but it doesn't seem to work properly
This commit is contained in:
@@ -125,7 +125,7 @@ where
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#![allow(clippy::disallowed_methods)] // Ok for tests
|
||||
#![expect(clippy::disallowed_methods)] // Ok for tests
|
||||
|
||||
use crate::mutex::Mutex;
|
||||
use std::time::Duration;
|
||||
@@ -158,7 +158,7 @@ mod tests {
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
#[cfg(test)]
|
||||
mod tests_rwlock {
|
||||
#![allow(clippy::disallowed_methods)] // Ok for tests
|
||||
#![expect(clippy::disallowed_methods)] // Ok for tests
|
||||
|
||||
use crate::mutex::RwLock;
|
||||
use std::time::Duration;
|
||||
|
||||
Reference in New Issue
Block a user