1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

Enable the clippy::std_instead_of_core lint (#8394)

Prefer `core::` over `std::` where either work

* Part of https://github.com/emilk/egui/issues/5735
This commit is contained in:
Emil Ernerfeldt
2026-08-06 04:19:13 -07:00
committed by GitHub
parent 2a5f3d99b5
commit 6aea7eff94
176 changed files with 633 additions and 615 deletions

View File

@@ -2,7 +2,7 @@
// ----------------------------------------------------------------------------
const DEADLOCK_DURATION: std::time::Duration = std::time::Duration::from_secs(10);
const DEADLOCK_DURATION: core::time::Duration = core::time::Duration::from_secs(10);
/// Provides interior mutability.
///
@@ -128,7 +128,7 @@ mod tests {
#![expect(clippy::disallowed_methods)] // Ok for tests
use crate::mutex::Mutex;
use std::time::Duration;
use core::time::Duration;
#[test]
fn lock_two_different_mutexes_single_thread() {
@@ -161,7 +161,7 @@ mod tests_rwlock {
#![expect(clippy::disallowed_methods)] // Ok for tests
use crate::mutex::RwLock;
use std::time::Duration;
use core::time::Duration;
#[test]
fn lock_two_different_rwlocks_single_thread() {