@@ -34,7 +34,7 @@ fn journal_rotation() -> crate::Result<()> {
3434
3535 {
3636 let journal = Journal :: create_new ( & path) ?;
37- let mut writer = journal. get_writer ( ) ;
37+ let mut writer = journal. get_writer ( ) ? ;
3838
3939 writer. write_batch (
4040 [
@@ -70,7 +70,7 @@ fn journal_recovery_active() -> crate::Result<()> {
7070
7171 {
7272 let journal = Journal :: create_new ( & path) ?;
73- let mut writer = journal. get_writer ( ) ;
73+ let mut writer = journal. get_writer ( ) ? ;
7474
7575 writer. write_batch (
7676 [
@@ -110,7 +110,7 @@ fn journal_recovery_active() -> crate::Result<()> {
110110 assert ! ( next_next_path. try_exists( ) ?) ;
111111
112112 let journal_recovered = Journal :: recover ( dir2, CompressionType :: None , 0 ) ?;
113- assert_eq ! ( journal_recovered. active. path( ) , next_next_path) ;
113+ assert_eq ! ( journal_recovered. active. path( ) ? , next_next_path) ;
114114 assert_eq ! ( journal_recovered. sealed, & [ ( 0 , path) , ( 1 , next_path) ] ) ;
115115
116116 Ok ( ( ) )
@@ -133,7 +133,7 @@ fn journal_recovery_active_lz4() -> crate::Result<()> {
133133
134134 {
135135 let journal = Journal :: create_new ( & path) ?. with_compression ( CompressionType :: Lz4 , 1 ) ;
136- let mut writer = journal. get_writer ( ) ;
136+ let mut writer = journal. get_writer ( ) ? ;
137137
138138 writer. write_batch (
139139 [
@@ -173,7 +173,7 @@ fn journal_recovery_active_lz4() -> crate::Result<()> {
173173 assert ! ( next_next_path. try_exists( ) ?) ;
174174
175175 let journal_recovered = Journal :: recover ( dir2, CompressionType :: None , 0 ) ?;
176- assert_eq ! ( journal_recovered. active. path( ) , next_next_path) ;
176+ assert_eq ! ( journal_recovered. active. path( ) ? , next_next_path) ;
177177 assert_eq ! ( journal_recovered. sealed, & [ ( 0 , path) , ( 1 , next_path) ] ) ;
178178
179179 Ok ( ( ) )
@@ -194,7 +194,7 @@ fn journal_recovery_no_active() -> crate::Result<()> {
194194 let journal = Journal :: create_new ( & path) ?;
195195
196196 {
197- let mut writer = journal. get_writer ( ) ;
197+ let mut writer = journal. get_writer ( ) ? ;
198198
199199 writer. write_batch (
200200 [
@@ -217,7 +217,7 @@ fn journal_recovery_no_active() -> crate::Result<()> {
217217 assert ! ( !next_path. try_exists( ) ?) ;
218218
219219 let journal_recovered = Journal :: recover ( dir2, CompressionType :: None , 0 ) ?;
220- assert_eq ! ( journal_recovered. active. path( ) , path) ;
220+ assert_eq ! ( journal_recovered. active. path( ) ? , path) ;
221221 assert_eq ! ( journal_recovered. sealed, & [ ] ) ;
222222
223223 Ok ( ( ) )
@@ -241,7 +241,7 @@ fn journal_truncation_corrupt_bytes() -> crate::Result<()> {
241241 {
242242 let journal = Journal :: create_new ( & path) ?;
243243 journal
244- . get_writer ( )
244+ . get_writer ( ) ?
245245 . write_batch ( values. iter ( ) , values. len ( ) , 0 ) ?;
246246 }
247247
@@ -301,7 +301,7 @@ fn journal_truncation_repeating_start_marker() -> crate::Result<()> {
301301 {
302302 let journal = Journal :: create_new ( & path) ?;
303303 journal
304- . get_writer ( )
304+ . get_writer ( ) ?
305305 . write_batch ( values. iter ( ) , values. len ( ) , 0 ) ?;
306306 }
307307
@@ -369,7 +369,7 @@ fn journal_truncation_repeating_end_marker() -> crate::Result<()> {
369369 {
370370 let journal = Journal :: create_new ( & path) ?;
371371 journal
372- . get_writer ( )
372+ . get_writer ( ) ?
373373 . write_batch ( values. iter ( ) , values. len ( ) , 0 ) ?;
374374 }
375375
@@ -429,7 +429,7 @@ fn journal_truncation_repeating_item_marker() -> crate::Result<()> {
429429 {
430430 let journal = Journal :: create_new ( & path) ?;
431431 journal
432- . get_writer ( )
432+ . get_writer ( ) ?
433433 . write_batch ( values. iter ( ) , values. len ( ) , 0 ) ?;
434434 }
435435
0 commit comments