mirror of
https://github.com/Lokathor/bytemuck.git
synced 2024-11-22 06:42:25 +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.
|
/// exact.
|
||||||
AlignmentMismatch,
|
AlignmentMismatch,
|
||||||
}
|
}
|
||||||
|
#[cfg(not(target_arch = "spirv"))]
|
||||||
impl core::fmt::Display for PodCastError {
|
impl core::fmt::Display for PodCastError {
|
||||||
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
|
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)
|
write!(f, "{:?}", self)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user