diff --git a/lib-ws2818-rgb-led-spi-driver/src/adapter_gen.rs b/lib-ws2818-rgb-led-spi-driver/src/adapter_gen.rs index 6a69089..1fa66b5 100644 --- a/lib-ws2818-rgb-led-spi-driver/src/adapter_gen.rs +++ b/lib-ws2818-rgb-led-spi-driver/src/adapter_gen.rs @@ -34,7 +34,7 @@ pub trait Ws28xxAdapter { /// must fulfill the restrictions given by [`crate::timings`] and [`crate::encoding`] if the hardware /// device uses the specified frequency in [`crate::timings::PI_SPI_HZ`]. fn write_encoded_rgb(&mut self, encoded_data: &[u8]) -> Result<(), String> { - self.get_hw_dev().write_all(&encoded_data) + self.get_hw_dev().write_all(encoded_data) .map_err(|_| { format!( "Failed to send {} bytes via the specified hardware device. If you use SPI on Linux Perhaps your SPI buffer is too small!\ diff --git a/lib-ws2818-rgb-led-spi-driver/src/adapter_spi.rs b/lib-ws2818-rgb-led-spi-driver/src/adapter_spi.rs index 62f8811..ae501f4 100644 --- a/lib-ws2818-rgb-led-spi-driver/src/adapter_spi.rs +++ b/lib-ws2818-rgb-led-spi-driver/src/adapter_spi.rs @@ -17,7 +17,7 @@ struct SpiHwAdapterDev(Spidev); // Implement Hardwareabstraction for device. impl HardwareDev for SpiHwAdapterDev { fn write_all(&mut self, encoded_data: &[u8]) -> Result<(), String> { - self.0.write_all(&encoded_data) + self.0.write_all(encoded_data) .map_err(|_| { format!( "Failed to send {} bytes via SPI. Perhaps your SPI buffer is too small!\