Kimundi / owning-ref-rs

A library for creating references that carry their owner with them.
MIT License
359 stars 50 forks source link

Why does OwningHandle::new take Fn? #23

Closed Storyyeller closed 7 years ago

Storyyeller commented 7 years ago

Why does OwningHandle::new take Fn? As far as I can tell, it should only require FnOnce. Not that it matters much in this case, but it's nice to be as flexible as possible.

Kimundi commented 7 years ago

Hi, I'm sincerely sorry for taking so long to respond.

Good point though, I think that just slipped by in the original PR. Fixing it right now.