Skip to content

Commit 46f0334

Browse files
committed
Switch MutableAssetError to use thiserror instead of derive_more.
1 parent cb0a53b commit 46f0334

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/bevy_asset/src/assets.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -726,11 +726,11 @@ pub struct InvalidGenerationError {
726726
current_generation: u32,
727727
}
728728

729-
#[derive(Error, Display, Debug)]
729+
#[derive(Error, Debug)]
730730
pub enum MutableAssetError {
731-
#[display("asset is not present or has an invalid generation")]
731+
#[error("asset is not present or has an invalid generation")]
732732
Missing,
733-
#[display("asset `Arc` is aliased (there is another `Arc` or `Weak` to this asset), so it is not safe to mutate")]
733+
#[error("asset `Arc` is aliased (there is another `Arc` or `Weak` to this asset), so it is not safe to mutate")]
734734
Aliased,
735735
}
736736

0 commit comments

Comments
 (0)