You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// The behavior of `mmap()` can be modified by passing some [`Flags`]; otherwise,
176
176
/// just pass `Flags::empty()`.
177
-
///
177
+
///
178
178
/// Requires the `mmap` feature.
179
179
#[cfg(feature = "mmap")]
180
180
#[allow(clippy::uninit_vec)]
@@ -350,14 +350,14 @@ pub enum Error {
350
350
#[error("Alignment error. Most likely you are deserializing from a memory region with insufficient alignment.")]
351
351
/// Some fields are not properly aligned.
352
352
AlignmentError,
353
-
#[error("Major version mismatch. Expected {} but got {0}.",VERSION.0)]
353
+
#[error("Major version mismatch. Expected {major} but got {0}.", major =VERSION.0)]
354
354
/// The file was serialized with a version of ε-serde that is not compatible.
355
355
MajorVersionMismatch(u16),
356
-
#[error("Minor version mismatch. Expected {} but got {0}.",VERSION.1)]
356
+
#[error("Minor version mismatch. Expected {minor} but got {0}.", minor =VERSION.1)]
357
357
/// The file was serialized with a compatible, but too new version of ε-serde
358
358
/// so we might be missing features.
359
359
MinorVersionMismatch(u16),
360
-
#[error("The file was serialized on an architecture where a usize has size {0}, but on the current architecture it has size {}.", core::mem::size_of::<usize>())]
360
+
#[error("The file was serialized on an architecture where a usize has size {0}, but on the current architecture it has size {size}.", size = core::mem::size_of::<usize>())]
361
361
/// The the `pointer_width` of the serialized file is different from the
362
362
/// `pointer_width` of the current architecture.
363
363
/// For example, the file was serialized on a 64-bit machine and we are trying to
0 commit comments