Skip to content

Commit d3c31fa

Browse files
authored
Merge pull request #30 from molpopgen/fix_warnings
Remove Drop constraint on TskitType.
2 parents bedfa02 + f6f3304 commit d3c31fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ffi.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//! Define traits related to wrapping tskit stuff
22
33
/// Define what it means to wrap a tskit struct.
4-
/// The implementation of Drop should call the
5-
/// tsk_foo_free() function corresponding
6-
/// to tsk_foo_t.
7-
pub trait TskitType<T>: Drop {
4+
/// In practice, one needs to implement Drop for
5+
/// test types, calling the tsk_foo_free() function
6+
/// corresponding to tsk_foo_t.
7+
pub trait TskitType<T> {
88
/// Encapsulate tsk_foo_t and return rust
99
/// object. Best practices seem to
1010
/// suggest using Box for this.

0 commit comments

Comments
 (0)