File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
crates/model/src/snapshot_imports Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ struct SerializedSnapshotImport {
3838 object_key : String ,
3939 member_id : Option < i64 > ,
4040 checkpoints : Option < Vec < SerializedImportTableCheckpoint > > ,
41- requestor : Option < SerializedImportRequestor > ,
41+ requestor : SerializedImportRequestor ,
4242}
4343
4444impl From < SnapshotImport > for SerializedSnapshotImport {
@@ -53,7 +53,7 @@ impl From<SnapshotImport> for SerializedSnapshotImport {
5353 checkpoints : import
5454 . checkpoints
5555 . map ( |checkpoints| checkpoints. into_iter ( ) . map ( Into :: into) . collect ( ) ) ,
56- requestor : Some ( import. requestor . into ( ) ) ,
56+ requestor : import. requestor . into ( ) ,
5757 }
5858 }
5959}
@@ -73,10 +73,7 @@ impl TryFrom<SerializedSnapshotImport> for SnapshotImport {
7373 . checkpoints
7474 . map ( |checkpoints| checkpoints. into_iter ( ) . map ( TryInto :: try_into) . try_collect ( ) )
7575 . transpose ( ) ?,
76- requestor : import
77- . requestor
78- . unwrap_or ( SerializedImportRequestor :: SnapshotImport )
79- . into ( ) ,
76+ requestor : import. requestor . into ( ) ,
8077 } )
8178 }
8279}
You can’t perform that action at this time.
0 commit comments