bplevin36 / syncbuf

A small library of append-only, thread-safe, lock-free data structures.
MIT License
5 stars 2 forks source link

impl Default #2

Closed bestouff closed 6 months ago

bestouff commented 3 years ago

I created a Default impl for Synclist, which enables to impl Default on structs where it is embedded.
I'm sorry the diff is a bit messy because my editor automagically runs rustfmt, so there are (too) many whitespaces changes.

Note that, as per the API Guidelines I left new() in place, so I redirected default to it.

bplevin36 commented 6 months ago

@bestouff Apologies I haven't monitored this at all. Thanks for the contribution!

bestouff commented 6 months ago

Hey I know what it's like to maintain something.
Thanks for merging @bplevin36 !