Skip to content

Commit

Permalink
Ran cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hpenne committed Jan 8, 2025
1 parent 11e83c2 commit 3dc9fc6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/buf/buf_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use std::io::IoSlice;

use alloc::boxed::Box;


/// Error type for the `try_get_` methods of [`Buf`].
#[derive(Debug, PartialEq, Eq)]
pub enum TryGetError {
Expand All @@ -25,14 +24,15 @@ pub enum TryGetError {
impl std::fmt::Display for TryGetError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
match self {
TryGetError::OutOfBytes => write!(f, "Not enough bytes remaining in buffer to read value"),
TryGetError::OutOfBytes => {
write!(f, "Not enough bytes remaining in buffer to read value")
}
}
}
}

#[cfg(feature = "std")]
impl std::error::Error for TryGetError {
}
impl std::error::Error for TryGetError {}

macro_rules! buf_get_impl {
($this:ident, $typ:tt::$conv:tt) => {{
Expand Down

0 comments on commit 3dc9fc6

Please sign in to comment.