From 95b93020f49ce52e90fd077ef6883c98dd60e892 Mon Sep 17 00:00:00 2001 From: Broderick Carlin Date: Sun, 8 Dec 2024 22:12:06 -0600 Subject: [PATCH] docs: Fix README docs --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1de721f..1bf4cf6 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ impl ToByteArray for Configuration { type Array = [u8; 3]; type Error = &'static str; - fn to_bytes(&self) -> Result { + fn to_bytes(self) -> Result { let mut bytes = [0u8; 3]; bytes[0..2].copy_from_slice(&self.sample_rate.to_be_bytes()); bytes[2] = self.enabled as u8; @@ -141,7 +141,7 @@ impl ToByteArray for CalibrationParams { type Array = [u8; 4]; type Error = &'static str; - fn to_bytes(&self) -> Result { + fn to_bytes(self) -> Result { Ok(self.reference_temp.to_be_bytes()) } } @@ -169,7 +169,7 @@ impl Command for Calibrate { 0xF0.into() } - fn invoking_parameters(&self) -> Self::CommandParameters { + fn invoking_parameters(self) -> Self::CommandParameters { CalibrationParams { reference_temp: 25.0, }