@@ -1067,6 +1067,8 @@ impl TableCollection {
1067
1067
/// # assert_eq!(migrations.num_rows(), 0);
1068
1068
/// ```
1069
1069
pub fn set_migrations ( & mut self , migrations : & crate :: OwnedMigrationTable ) -> TskReturnValue {
1070
+ // SAFETY: neither self nor edges are possible
1071
+ // to create with null pointers.
1070
1072
let rv = unsafe {
1071
1073
ll_bindings:: tsk_migration_table_set_columns (
1072
1074
& mut ( * self . inner ) . migrations ,
@@ -1103,6 +1105,8 @@ impl TableCollection {
1103
1105
/// # assert_eq!(populations.num_rows(), 0);
1104
1106
/// ```
1105
1107
pub fn set_populations ( & mut self , populations : & crate :: OwnedPopulationTable ) -> TskReturnValue {
1108
+ // SAFETY: neither self nor edges are possible
1109
+ // to create with null pointers.
1106
1110
let rv = unsafe {
1107
1111
ll_bindings:: tsk_population_table_set_columns (
1108
1112
& mut ( * self . inner ) . populations ,
@@ -1140,6 +1144,8 @@ impl TableCollection {
1140
1144
& mut self ,
1141
1145
provenances : & crate :: provenance:: OwnedProvenanceTable ,
1142
1146
) -> TskReturnValue {
1147
+ // SAFETY: neither self nor edges are possible
1148
+ // to create with null pointers.
1143
1149
let rv = unsafe {
1144
1150
ll_bindings:: tsk_provenance_table_set_columns (
1145
1151
& mut ( * self . inner ) . provenances ,
0 commit comments