1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -04:00

Improve clippy, and add more docs (#3306)

* Silence a few clippy warnings

* Use named threads

* Remove some deprecated functions

* Document Context and Ui fully

* Use `parking_lot::Mutex` in `eframe`

* Expand clippy.toml files

* build fix
This commit is contained in:
Emil Ernerfeldt
2023-09-05 14:11:22 +02:00
committed by GitHub
parent 436996b79e
commit 67168be069
12 changed files with 119 additions and 23 deletions

View File

@@ -374,6 +374,8 @@ where
#[cfg(test)]
mod tests {
#![allow(clippy::disallowed_methods)] // Ok for tests
use crate::mutex::Mutex;
use std::time::Duration;
@@ -414,6 +416,8 @@ mod tests {
#[cfg(feature = "deadlock_detection")]
#[cfg(test)]
mod tests_rwlock {
#![allow(clippy::disallowed_methods)] // Ok for tests
use crate::mutex::RwLock;
use std::time::Duration;