Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
jpochyla
· 3y ago · 0 comments
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.
Comments
No comments yet.
Better HN