File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 2424//! Those docs describe the most important parts of the C API.
2525//! This module contains the same types/functions with the same names.
2626
27- include ! ( concat! ( env! ( "OUT_DIR" ) , "/auto_bindings.rs" ) ) ;
27+ #! [ allow ( clippy :: all ) ]
2828
29- // tskit defines this via a type cast
30- // in a macro. bindgen thus misses it.
31- // See bindgen issue 316.
32- /// "Null" identifier value.
33- pub const TSK_NULL : tsk_id_t = -1 ;
29+ include ! ( concat!( env!( "OUT_DIR" ) , "/auto_bindings.rs" ) ) ;
Original file line number Diff line number Diff line change @@ -20,14 +20,19 @@ pub mod types;
2020// we can't live without
2121pub use bindings:: TSK_NODE_IS_SAMPLE ;
2222pub use bindings:: TSK_NO_BUILD_INDEXES ;
23- pub use bindings:: TSK_NULL ;
2423pub use bindings:: TSK_SAMPLE_LISTS ;
2524
2625// re-export types, too
2726pub use bindings:: tsk_flags_t;
2827pub use bindings:: tsk_id_t;
2928pub use bindings:: tsk_size_t;
3029
30+ // tskit defines this via a type cast
31+ // in a macro. bindgen thus misses it.
32+ // See bindgen issue 316.
33+ /// "Null" identifier value.
34+ pub const TSK_NULL : tsk_id_t = -1 ;
35+
3136pub use edge_table:: EdgeTable ;
3237pub use error:: TskitRustError ;
3338pub use mutation_table:: MutationTable ;
Original file line number Diff line number Diff line change @@ -13,6 +13,6 @@ mod tests {
1313
1414 #[ test]
1515 fn test_tsk_null ( ) {
16- assert_eq ! ( bindings :: TSK_NULL , -1 ) ;
16+ assert_eq ! ( TSK_NULL , -1 ) ;
1717 }
1818}
You can’t perform that action at this time.
0 commit comments