mirror of
https://github.com/bevyengine/bevy
synced 2024-12-22 02:53:07 +00:00
9f4c8b1b9a
Fix errors and panics to typical Rust conventions
10 lines
251 B
Rust
10 lines
251 B
Rust
use ab_glyph::GlyphId;
|
|
use thiserror::Error;
|
|
|
|
#[derive(Debug, PartialEq, Eq, Error)]
|
|
pub enum TextError {
|
|
#[error("font not found")]
|
|
NoSuchFont,
|
|
#[error("failed to add glyph to newly-created atlas {0:?}")]
|
|
FailedToAddGlyph(GlyphId),
|
|
}
|