Re: [PATCH v3] rust: serdev: Mitigate race conditions
From: Miguel Ojeda
Date: Sat Sep 05 2026 - 14:44:01 EST
On Sat, Sep 5, 2026 at 8:33 PM Markus Probst <markus.probst@xxxxxxxxx> wrote:
>
> + /* receive_buf: if T::HAS_RECEIVE {
> Some(Self::receive_buf_callback)
> } else {
> None
> + }, */
> + // Bound,
> + /*fn receive<'bound>(
> sdev: &'bound serdev::Device<Bound>,
> _this: Pin<&Self>,
> data: &[u8],
> ) -> usize {
> sdev.write(data).unwrap_or_default() as usize
> - }
> + }*/
Please don't comment code out -- it is fine to just remove it even if
it is a temporary measure. The code will still be there in Git.
Thanks!
Cheers,
Miguel