@@ -10,7 +10,7 @@ async fn validate_new_device_with_verif_key() -> Result<(), Error> {
1010 let id = & app. create_identity ( None ) ;
1111
1212 let tanker = Core :: new ( app. make_options ( ) ) . await ?;
13- assert_eq ! ( tanker. start( & id) . await ?, Status :: IdentityRegistrationNeeded ) ;
13+ assert_eq ! ( tanker. start( id) . await ?, Status :: IdentityRegistrationNeeded ) ;
1414 let key = Verification :: VerificationKey ( tanker. generate_verification_key ( ) . await ?) ;
1515 tanker
1616 . register_identity ( & key, & VerificationOptions :: new ( ) )
@@ -19,7 +19,7 @@ async fn validate_new_device_with_verif_key() -> Result<(), Error> {
1919 tanker. stop ( ) . await ?;
2020
2121 let tanker = Core :: new ( app. make_options ( ) ) . await ?;
22- assert_eq ! ( tanker. start( & id) . await ?, Status :: IdentityVerificationNeeded ) ;
22+ assert_eq ! ( tanker. start( id) . await ?, Status :: IdentityVerificationNeeded ) ;
2323 tanker
2424 . verify_identity ( & key, & VerificationOptions :: new ( ) )
2525 . await ?;
@@ -33,15 +33,15 @@ async fn setup_and_use_passphrase() -> Result<(), Error> {
3333 let id = & app. create_identity ( None ) ;
3434 let pass = Verification :: Passphrase ( "The Beauty In The Ordinary" . into ( ) ) ;
3535 let tanker = Core :: new ( app. make_options ( ) ) . await ?;
36- assert_eq ! ( tanker. start( & id) . await ?, Status :: IdentityRegistrationNeeded ) ;
36+ assert_eq ! ( tanker. start( id) . await ?, Status :: IdentityRegistrationNeeded ) ;
3737 tanker
3838 . register_identity ( & pass, & VerificationOptions :: new ( ) )
3939 . await ?;
4040 assert_eq ! ( tanker. status( ) , Status :: Ready ) ;
4141 tanker. stop ( ) . await ?;
4242
4343 let tanker = Core :: new ( app. make_options ( ) ) . await ?;
44- assert_eq ! ( tanker. start( & id) . await ?, Status :: IdentityVerificationNeeded ) ;
44+ assert_eq ! ( tanker. start( id) . await ?, Status :: IdentityVerificationNeeded ) ;
4545 tanker
4646 . verify_identity ( & pass, & VerificationOptions :: new ( ) )
4747 . await ?;
@@ -58,15 +58,15 @@ async fn unlock_with_updated_passphrase() -> Result<(), Error> {
5858
5959 let verif_options = & VerificationOptions :: new ( ) ;
6060 let tanker = Core :: new ( app. make_options ( ) ) . await ?;
61- tanker. start ( & id) . await ?;
61+ tanker. start ( id) . await ?;
6262 tanker. register_identity ( & first_pass, verif_options) . await ?;
6363 tanker
6464 . set_verification_method ( & second_pass, verif_options)
6565 . await ?;
6666 tanker. stop ( ) . await ?;
6767
6868 let tanker = Core :: new ( app. make_options ( ) ) . await ?;
69- assert_eq ! ( tanker. start( & id) . await ?, Status :: IdentityVerificationNeeded ) ;
69+ assert_eq ! ( tanker. start( id) . await ?, Status :: IdentityVerificationNeeded ) ;
7070 tanker. verify_identity ( & second_pass, verif_options) . await ?;
7171 assert_eq ! ( tanker. status( ) , Status :: Ready ) ;
7272 tanker. stop ( ) . await
@@ -79,7 +79,7 @@ async fn check_passphrase_is_setup() -> Result<(), Error> {
7979 let pass = Verification :: Passphrase ( "The Cost of Legacy" . into ( ) ) ;
8080
8181 let tanker = Core :: new ( app. make_options ( ) ) . await ?;
82- tanker. start ( & id) . await ?;
82+ tanker. start ( id) . await ?;
8383 tanker
8484 . register_identity ( & pass, & VerificationOptions :: new ( ) )
8585 . await ?;
@@ -101,7 +101,7 @@ async fn check_email_verif_is_setup() -> Result<(), Error> {
101101 } ;
102102
103103 let tanker = Core :: new ( app. make_options ( ) ) . await ?;
104- tanker. start ( & id) . await ?;
104+ tanker. start ( id) . await ?;
105105 tanker
106106 . register_identity ( & verif, & VerificationOptions :: new ( ) )
107107 . await ?;
@@ -123,7 +123,7 @@ async fn check_sms_verif_is_setup() -> Result<(), Error> {
123123 } ;
124124
125125 let tanker = Core :: new ( app. make_options ( ) ) . await ?;
126- tanker. start ( & id) . await ?;
126+ tanker. start ( id) . await ?;
127127 tanker
128128 . register_identity ( & verif, & VerificationOptions :: new ( ) )
129129 . await ?;
@@ -141,21 +141,21 @@ async fn unlock_with_verif_code() -> Result<(), Error> {
141141142142
143143 let tanker = Core :: new ( app. make_options ( ) ) . await ?;
144- tanker. start ( & id) . await ?;
144+ tanker. start ( id) . await ?;
145145 let verif = Verification :: Email {
146146 email : email. to_owned ( ) ,
147- verification_code : app. get_email_verification_code ( & email) . await ?,
147+ verification_code : app. get_email_verification_code ( email) . await ?,
148148 } ;
149149 tanker
150150 . register_identity ( & verif, & VerificationOptions :: new ( ) )
151151 . await ?;
152152 tanker. stop ( ) . await ?;
153153
154154 let tanker = Core :: new ( app. make_options ( ) ) . await ?;
155- tanker. start ( & id) . await ?;
155+ tanker. start ( id) . await ?;
156156 let verif = Verification :: Email {
157157 email : email. to_owned ( ) ,
158- verification_code : app. get_email_verification_code ( & email) . await ?,
158+ verification_code : app. get_email_verification_code ( email) . await ?,
159159 } ;
160160 tanker
161161 . verify_identity ( & verif, & VerificationOptions :: new ( ) )
@@ -216,7 +216,7 @@ async fn get_session_token_with_register_identity() -> Result<(), Error> {
216216 let pass = Verification :: Passphrase ( "The Cost of Legacy" . into ( ) ) ;
217217
218218 let tanker = Core :: new ( app. make_options ( ) ) . await ?;
219- tanker. start ( & id) . await ?;
219+ tanker. start ( id) . await ?;
220220 let token = tanker
221221 . register_identity ( & pass, & VerificationOptions :: new ( ) . with_session_token ( ) )
222222 . await ?;
@@ -234,7 +234,7 @@ async fn get_session_token_with_verify_identity() -> Result<(), Error> {
234234 let pass = Verification :: Passphrase ( "Merge remote-tracking branch 'rust/rust-next'" . into ( ) ) ;
235235
236236 let tanker = Core :: new ( app. make_options ( ) ) . await ?;
237- tanker. start ( & id) . await ?;
237+ tanker. start ( id) . await ?;
238238 tanker
239239 . register_identity ( & pass, & VerificationOptions :: new ( ) )
240240 . await ?;
@@ -257,7 +257,7 @@ async fn get_session_token_with_set_verififcation_method() -> Result<(), Error>
257257 let pass2 = Verification :: Passphrase ( "Deimos" . into ( ) ) ;
258258
259259 let tanker = Core :: new ( app. make_options ( ) ) . await ?;
260- tanker. start ( & id) . await ?;
260+ tanker. start ( id) . await ?;
261261 tanker
262262 . register_identity ( & pass, & VerificationOptions :: new ( ) )
263263 . await ?;
0 commit comments