Skip to content

Commit

Permalink
add a note about replacing Void with an extern type
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Apr 6, 2019
1 parent 2ca2e68 commit c463161
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/key_values/value/any.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ pub(super) struct Any<'a> {
from: FromAnyFn<Void>,
}

// FIXME: This would be more correct as an extern type
// Replace once the `extern_types` feature is stable
// and available
struct Void {
_priv: (),
_oibit_remover: PhantomData<*mut Fn()>,
Expand Down

0 comments on commit c463161

Please sign in to comment.