@@ -137,7 +137,7 @@ mod method {
137
137
use pretty_assertions:: assert_eq;
138
138
139
139
#[ test]
140
- fn tree ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
140
+ fn tree ( ) -> crate :: Result {
141
141
let fixture = fixture_bytes ( "commit" , "unsigned.txt" ) ;
142
142
let commit = Commit :: from_bytes ( & fixture) ?;
143
143
assert_eq ! ( commit. tree( ) , hex_to_id( "1b2dfb4ac5e42080b682fc676e9738c94ce6d54d" ) ) ;
@@ -157,7 +157,7 @@ mod iter {
157
157
use git_object:: { bstr:: ByteSlice , immutable:: commit:: iter:: Token , immutable:: CommitIter } ;
158
158
159
159
#[ test]
160
- fn newline_right_after_signature_multiline_header ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
160
+ fn newline_right_after_signature_multiline_header ( ) -> crate :: Result {
161
161
let data = fixture_bytes ( "commit" , "signed-whitespace.txt" ) ;
162
162
let tokens = CommitIter :: from_bytes ( & data) . collect :: < Result < Vec < _ > , _ > > ( ) ?;
163
163
assert_eq ! ( tokens. len( ) , 7 , "mainly a parsing exercise" ) ;
@@ -171,7 +171,7 @@ mod iter {
171
171
}
172
172
173
173
#[ test]
174
- fn signed_with_encoding ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
174
+ fn signed_with_encoding ( ) -> crate :: Result {
175
175
assert_eq ! (
176
176
CommitIter :: from_bytes( & fixture_bytes( "commit" , "signed-with-encoding.txt" ) )
177
177
. collect:: <Result <Vec <_>, _>>( ) ?,
@@ -197,7 +197,7 @@ mod iter {
197
197
}
198
198
199
199
#[ test]
200
- fn whitespace ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
200
+ fn whitespace ( ) -> crate :: Result {
201
201
assert_eq ! (
202
202
CommitIter :: from_bytes( & fixture_bytes( "commit" , "whitespace.txt" ) ) . collect:: <Result <Vec <_>, _>>( ) ?,
203
203
vec![
@@ -220,7 +220,7 @@ mod iter {
220
220
}
221
221
222
222
#[ test]
223
- fn unsigned ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
223
+ fn unsigned ( ) -> crate :: Result {
224
224
assert_eq ! (
225
225
CommitIter :: from_bytes( & fixture_bytes( "commit" , "unsigned.txt" ) ) . collect:: <Result <Vec <_>, _>>( ) ?,
226
226
vec![
@@ -240,7 +240,7 @@ mod iter {
240
240
}
241
241
242
242
#[ test]
243
- fn signed_singleline ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
243
+ fn signed_singleline ( ) -> crate :: Result {
244
244
assert_eq ! (
245
245
CommitIter :: from_bytes( & fixture_bytes( "commit" , "signed-singleline.txt" ) ) . collect:: <Result <Vec <_>, _>>( ) ?,
246
246
vec![
@@ -264,7 +264,7 @@ mod iter {
264
264
}
265
265
266
266
#[ test]
267
- fn error_handling ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
267
+ fn error_handling ( ) -> crate :: Result {
268
268
let data = fixture_bytes ( "commit" , "unsigned.txt" ) ;
269
269
let iter = CommitIter :: from_bytes ( & data[ ..data. len ( ) / 2 ] ) ;
270
270
let tokens = iter. collect :: < Vec < _ > > ( ) ;
@@ -276,7 +276,7 @@ mod iter {
276
276
}
277
277
278
278
#[ test]
279
- fn mergetag ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
279
+ fn mergetag ( ) -> crate :: Result {
280
280
assert_eq ! (
281
281
CommitIter :: from_bytes( & fixture_bytes( "commit" , "mergetag.txt" ) ) . collect:: <Result <Vec <_>, _>>( ) ?,
282
282
vec![
@@ -310,7 +310,7 @@ mod iter {
310
310
use git_object:: immutable:: CommitIter ;
311
311
312
312
#[ test]
313
- fn tree_id ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
313
+ fn tree_id ( ) -> crate :: Result {
314
314
assert_eq ! (
315
315
CommitIter :: from_bytes( & fixture_bytes( "commit" , "unsigned.txt" ) ) . tree_id( ) ,
316
316
Some ( hex_to_id( "1b2dfb4ac5e42080b682fc676e9738c94ce6d54d" ) )
@@ -325,7 +325,7 @@ mod iter {
325
325
}
326
326
327
327
#[ test]
328
- fn signatures ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
328
+ fn signatures ( ) -> crate :: Result {
329
329
assert_eq ! (
330
330
CommitIter :: from_bytes( & fixture_bytes( "commit" , "unsigned.txt" ) )
331
331
. signatures( )
@@ -346,7 +346,7 @@ mod from_bytes {
346
346
use smallvec:: SmallVec ;
347
347
348
348
#[ test]
349
- fn unsigned ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
349
+ fn unsigned ( ) -> crate :: Result {
350
350
assert_eq ! (
351
351
Commit :: from_bytes( & fixture_bytes( "commit" , "unsigned.txt" ) ) ?,
352
352
Commit {
@@ -363,7 +363,7 @@ mod from_bytes {
363
363
}
364
364
365
365
#[ test]
366
- fn whitespace ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
366
+ fn whitespace ( ) -> crate :: Result {
367
367
assert_eq ! (
368
368
Commit :: from_bytes( & fixture_bytes( "commit" , "whitespace.txt" ) ) ?,
369
369
Commit {
@@ -380,7 +380,7 @@ mod from_bytes {
380
380
}
381
381
382
382
#[ test]
383
- fn signed_singleline ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
383
+ fn signed_singleline ( ) -> crate :: Result {
384
384
assert_eq ! (
385
385
Commit :: from_bytes( & fixture_bytes( "commit" , "signed-singleline.txt" ) ) ?,
386
386
Commit {
@@ -397,7 +397,7 @@ mod from_bytes {
397
397
}
398
398
399
399
#[ test]
400
- fn mergetag ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
400
+ fn mergetag ( ) -> crate :: Result {
401
401
let fixture = fixture_bytes ( "commit" , "mergetag.txt" ) ;
402
402
let commit = Commit {
403
403
tree : b"1c61918031bf2c7fab9e17dde3c52a6a9884fcb5" . as_bstr ( ) ,
@@ -421,7 +421,7 @@ mod from_bytes {
421
421
}
422
422
423
423
#[ test]
424
- fn signed ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
424
+ fn signed ( ) -> crate :: Result {
425
425
assert_eq ! (
426
426
Commit :: from_bytes( & fixture_bytes( "commit" , "signed.txt" ) ) ?,
427
427
Commit {
@@ -438,7 +438,7 @@ mod from_bytes {
438
438
}
439
439
440
440
#[ test]
441
- fn signed_with_encoding ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
441
+ fn signed_with_encoding ( ) -> crate :: Result {
442
442
assert_eq ! (
443
443
Commit :: from_bytes( & fixture_bytes( "commit" , "signed-with-encoding.txt" ) ) ?,
444
444
Commit {
@@ -455,7 +455,7 @@ mod from_bytes {
455
455
}
456
456
457
457
#[ test]
458
- fn with_encoding ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
458
+ fn with_encoding ( ) -> crate :: Result {
459
459
assert_eq ! (
460
460
Commit :: from_bytes( & fixture_bytes( "commit" , "with-encoding.txt" ) ) ?,
461
461
Commit {
@@ -472,7 +472,7 @@ mod from_bytes {
472
472
}
473
473
474
474
#[ test]
475
- fn merge ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
475
+ fn merge ( ) -> crate :: Result {
476
476
assert_eq ! (
477
477
Commit :: from_bytes( & fixture_bytes( "commit" , "merge.txt" ) ) ?,
478
478
Commit {
@@ -504,7 +504,7 @@ iyBBl69jASy41Ug/BlFJbw4+ItkShpXwkJKuBBV/JExChmvbxYWaS7QnyYC9UO0=
504
504
" ;
505
505
506
506
#[ test]
507
- fn newline_right_after_signature_multiline_header ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
507
+ fn newline_right_after_signature_multiline_header ( ) -> crate :: Result {
508
508
let fixture = fixture_bytes ( "commit" , "signed-whitespace.txt" ) ;
509
509
let commit = Commit :: from_bytes ( & fixture) ?;
510
510
let pgp_sig = OTHER_SIGNATURE . as_bstr ( ) ;
0 commit comments