brunoczim / fslock

File locking for Rust.
MIT License
40 stars 11 forks source link

changing try_lock to match Mutex standard #16

Open mostlymaxi opened 2 months ago

mostlymaxi commented 2 months ago

Changes try_lock from a Result to just a Result<()>. This better matches the standard library (see mutex as an example).

I find this to be much more intuitive and inline with the current rust standards.