mirror of
https://github.com/Lokathor/bytemuck.git
synced 2024-11-21 22:32:23 +00:00
Just gate the Display impl instead (#69)
The old version didn't compile (because of the extra semicolon)
This commit is contained in:
parent
8c8b0a71e9
commit
291b2d2513
@ -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