@@ -1067,6 +1067,8 @@ impl TableCollection {
10671067 /// # assert_eq!(migrations.num_rows(), 0);
10681068 /// ```
10691069 pub fn set_migrations ( & mut self , migrations : & crate :: OwnedMigrationTable ) -> TskReturnValue {
1070+ // SAFETY: neither self nor edges are possible
1071+ // to create with null pointers.
10701072 let rv = unsafe {
10711073 ll_bindings:: tsk_migration_table_set_columns (
10721074 & mut ( * self . inner ) . migrations ,
@@ -1103,6 +1105,8 @@ impl TableCollection {
11031105 /// # assert_eq!(populations.num_rows(), 0);
11041106 /// ```
11051107 pub fn set_populations ( & mut self , populations : & crate :: OwnedPopulationTable ) -> TskReturnValue {
1108+ // SAFETY: neither self nor edges are possible
1109+ // to create with null pointers.
11061110 let rv = unsafe {
11071111 ll_bindings:: tsk_population_table_set_columns (
11081112 & mut ( * self . inner ) . populations ,
@@ -1140,6 +1144,8 @@ impl TableCollection {
11401144 & mut self ,
11411145 provenances : & crate :: provenance:: OwnedProvenanceTable ,
11421146 ) -> TskReturnValue {
1147+ // SAFETY: neither self nor edges are possible
1148+ // to create with null pointers.
11431149 let rv = unsafe {
11441150 ll_bindings:: tsk_provenance_table_set_columns (
11451151 & mut ( * self . inner ) . provenances ,
0 commit comments