mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Forbid uses of unwrap() in the code (#7795)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#![expect(clippy::unwrap_used)] // it's a test
|
||||
|
||||
use egui::accesskit::Role;
|
||||
use egui::load::SizedTexture;
|
||||
use egui::{
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release
|
||||
#![allow(rustdoc::missing_crate_level_docs)] // it's an example
|
||||
#![allow(clippy::undocumented_unsafe_blocks)]
|
||||
#![expect(
|
||||
// it's a test:
|
||||
clippy::undocumented_unsafe_blocks,
|
||||
clippy::unwrap_used,
|
||||
rustdoc::missing_crate_level_docs
|
||||
)]
|
||||
|
||||
// Test that we can paint to the screen using glow directly.
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release
|
||||
#![allow(rustdoc::missing_crate_level_docs)] // it's an example
|
||||
#![expect(clippy::unwrap_used, rustdoc::missing_crate_level_docs)] // it's a test
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user