mirror of
https://github.com/Lokathor/bytemuck.git
synced 2024-11-25 16:22:56 +00:00
Merge branch 'main' of https://github.com/Lokathor/bytemuck into main
This commit is contained in:
commit
7f8b15e6e9
@ -231,12 +231,9 @@ pub enum PodCastError {
|
||||
/// exact.
|
||||
AlignmentMismatch,
|
||||
}
|
||||
#[cfg(not(target_arch = "spirv"))]
|
||||
impl core::fmt::Display for PodCastError {
|
||||
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
|
||||
// Currently, this is unlikely to work for the spirv targets
|
||||
#[cfg(target_arch = "spirv")]
|
||||
write!(f, "PodCastError");
|
||||
#[cfg(not(target_arch = "spirv"))]
|
||||
write!(f, "{:?}", self)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user