Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self:: -> self. #642

Merged
merged 1 commit into from
Dec 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/buf/buf_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ pub trait Buf {
///
/// This function panics if there is not enough remaining data in `self`.
fn get_f32(&mut self) -> f32 {
f32::from_bits(Self::get_u32(self))
f32::from_bits(self.get_u32())
}

/// Gets an IEEE754 single-precision (4 bytes) floating point number from
Expand All @@ -1012,7 +1012,7 @@ pub trait Buf {
///
/// This function panics if there is not enough remaining data in `self`.
fn get_f32_le(&mut self) -> f32 {
f32::from_bits(Self::get_u32_le(self))
f32::from_bits(self.get_u32_le())
}

/// Gets an IEEE754 single-precision (4 bytes) floating point number from
Expand All @@ -1036,7 +1036,7 @@ pub trait Buf {
///
/// This function panics if there is not enough remaining data in `self`.
fn get_f32_ne(&mut self) -> f32 {
f32::from_bits(Self::get_u32_ne(self))
f32::from_bits(self.get_u32_ne())
}

/// Gets an IEEE754 double-precision (8 bytes) floating point number from
Expand All @@ -1057,7 +1057,7 @@ pub trait Buf {
///
/// This function panics if there is not enough remaining data in `self`.
fn get_f64(&mut self) -> f64 {
f64::from_bits(Self::get_u64(self))
f64::from_bits(self.get_u64())
}

/// Gets an IEEE754 double-precision (8 bytes) floating point number from
Expand All @@ -1078,7 +1078,7 @@ pub trait Buf {
///
/// This function panics if there is not enough remaining data in `self`.
fn get_f64_le(&mut self) -> f64 {
f64::from_bits(Self::get_u64_le(self))
f64::from_bits(self.get_u64_le())
}

/// Gets an IEEE754 double-precision (8 bytes) floating point number from
Expand All @@ -1102,7 +1102,7 @@ pub trait Buf {
///
/// This function panics if there is not enough remaining data in `self`.
fn get_f64_ne(&mut self) -> f64 {
f64::from_bits(Self::get_u64_ne(self))
f64::from_bits(self.get_u64_ne())
}

/// Consumes `len` bytes inside self and returns new instance of `Bytes`
Expand Down