News for hackers. Stuff that matters.
Re:Effective Rust by jpochyla on Thursday June 15, 2023 @08:42AM (#36339650)
This is... not how I would really write it. If `encrypt` takes a `&[u8]`, as it should, you don't need a `&vec![]` at all, and can do:

  self.payload.as_deref().unwrap_or_default()
...which I think is the best here.

There are no comments on this comment yet.