mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 05:10:03 -04:00
Forbid uses of unwrap() in the code (#7795)
This commit is contained in:
@@ -281,7 +281,12 @@ impl Mesh {
|
||||
let mesh = Mesh16 {
|
||||
indices: self.indices[span_start..index_cursor]
|
||||
.iter()
|
||||
.map(|vi| u16::try_from(vi - min_vindex).unwrap())
|
||||
.map(|vi| {
|
||||
#[expect(clippy::unwrap_used)]
|
||||
{
|
||||
u16::try_from(vi - min_vindex).unwrap()
|
||||
}
|
||||
})
|
||||
.collect(),
|
||||
vertices: self.vertices[(min_vindex as usize)..=(max_vindex as usize)].to_vec(),
|
||||
texture_id: self.texture_id,
|
||||
|
||||
Reference in New Issue
Block a user