Skip to content

Commit e19095d

Browse files
authored
clippy vs bindgen (#130)
* Add #[allow(deref_nullptr)] so that rust-lang/rust-bindgen#1651 doesn't cause CI failures via clippy. * Change assert to make clippy happy.
1 parent d9abda5 commit e19095d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
#![allow(non_camel_case_types)]
6363
#![allow(non_snake_case)]
6464

65+
#[allow(deref_nullptr)]
6566
pub mod bindings;
6667

6768
mod _macros; // Starts w/_ to be sorted at front by rustfmt!

src/table_collection.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ mod test {
775775
#[test]
776776
fn test_edge_index_access() {
777777
let tables = make_small_table_collection();
778-
assert_eq!(tables.is_indexed(), true);
778+
assert!(tables.is_indexed());
779779
assert_eq!(
780780
tables.edge_insertion_order().unwrap().len(),
781781
tables.edges().num_rows() as usize

0 commit comments

Comments
 (0)