@@ -329,7 +329,7 @@ mod tests {
329329 } ]
330330 ) ;
331331
332- assert ! ( !bitbox02 :: keystore:: is_locked( ) ) ;
332+ assert ! ( !crate :: keystore:: is_locked( ) ) ;
333333 assert ! ( bitbox02:: memory:: is_seeded( ) ) ;
334334 assert ! ( !bitbox02:: memory:: is_initialized( ) ) ;
335335
@@ -343,7 +343,7 @@ mod tests {
343343
344344 // Can reboot when seeded and locked. This happens when the user sets a password and then
345345 // reconnects the device.
346- bitbox02 :: keystore:: lock ( ) ;
346+ crate :: keystore:: lock ( ) ;
347347 let mut mock_hal = TestingHal :: new ( ) ;
348348 let reboot_called = std:: panic:: catch_unwind ( std:: panic:: AssertUnwindSafe ( || {
349349 make_request ( & mut mock_hal, reboot_request. encode_to_vec ( ) . as_ref ( ) ) . unwrap ( ) ;
@@ -372,7 +372,7 @@ mod tests {
372372
373373 let mut make_request = init_noise ( ) ;
374374
375- bitbox02 :: keystore:: lock ( ) ;
375+ crate :: keystore:: lock ( ) ;
376376 let mut mock_hal = TestingHal :: new ( ) ;
377377 mock_hal. sd . inserted = Some ( true ) ;
378378 mock_hal
@@ -391,7 +391,7 @@ mod tests {
391391 . as_ref ( ) ,
392392 )
393393 . unwrap ( ) ;
394- assert ! ( !bitbox02 :: keystore:: is_locked( ) ) ;
394+ assert ! ( !crate :: keystore:: is_locked( ) ) ;
395395 assert ! ( !bitbox02:: memory:: is_initialized( ) ) ;
396396 let mut mock_hal = TestingHal :: new ( ) ;
397397 mock_hal. sd . inserted = Some ( true ) ;
@@ -434,7 +434,7 @@ mod tests {
434434 } ;
435435
436436 // Can't reboot when initialized but locked.
437- bitbox02 :: keystore:: lock ( ) ;
437+ crate :: keystore:: lock ( ) ;
438438 let mut mock_hal = TestingHal :: new ( ) ;
439439 let response_encoded =
440440 make_request ( & mut mock_hal, & reboot_request. encode_to_vec ( ) ) . unwrap ( ) ;
@@ -456,7 +456,7 @@ mod tests {
456456 block_on( _process_packet( & mut mock_hal, vec![ OP_UNLOCK ] ) ) ,
457457 [ OP_STATUS_SUCCESS ] . to_vec( )
458458 ) ;
459- assert ! ( !bitbox02 :: keystore:: is_locked( ) ) ;
459+ assert ! ( !crate :: keystore:: is_locked( ) ) ;
460460
461461 // Since in the previous request the msg was encrypted but not decrypted (query was
462462 // rejected), the noise states are out of sync and we need to make a new channel.
@@ -490,7 +490,7 @@ mod tests {
490490 & b"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" [ ..] ,
491491 & b"aaaaaaaaaaaaaaaa" [ ..] ,
492492 ] {
493- bitbox02 :: keystore:: lock ( ) ;
493+ crate :: keystore:: lock ( ) ;
494494 mock_memory ( ) ;
495495
496496 bitbox02:: memory:: set_device_name ( "test device name" ) . unwrap ( ) ;
@@ -552,7 +552,7 @@ mod tests {
552552 ]
553553 ) ;
554554
555- let seed = bitbox02 :: keystore:: copy_seed ( ) . unwrap ( ) ;
555+ let seed = crate :: keystore:: copy_seed ( ) . unwrap ( ) ;
556556 assert_eq ! ( seed. len( ) , host_entropy. len( ) ) ;
557557 mock_hal. ui = crate :: workflow:: testing:: TestingWorkflows :: new ( ) ;
558558 assert ! ( matches!(
@@ -718,7 +718,7 @@ mod tests {
718718 ) ;
719719
720720 // Restored seed is the same as the seed that was backed up.
721- assert_eq ! ( seed, bitbox02 :: keystore:: copy_seed( ) . unwrap( ) ) ;
721+ assert_eq ! ( seed, crate :: keystore:: copy_seed( ) . unwrap( ) ) ;
722722 }
723723 }
724724}
0 commit comments