File tree Expand file tree Collapse file tree 1 file changed +16
-20
lines changed
proton-authenticator/src/parser/lastpass Expand file tree Collapse file tree 1 file changed +16
-20
lines changed Original file line number Diff line number Diff line change @@ -155,30 +155,26 @@ mod test {
155155 assert_eq ! ( entries. len( ) , 2 ) ;
156156
157157 match & entries[ 0 ] . content {
158- AuthenticatorEntryContent :: Totp ( totp) => {
159- check_totp (
160- totp,
161- Algorithm :: SHA1 ,
162- 6 ,
163- 30 ,
164- Some ( "code 1 lastpass" . to_string ( ) ) ,
165- Some ( "snjxxndjbdbdb" . to_string ( ) ) ,
166- )
167- } ,
158+ AuthenticatorEntryContent :: Totp ( totp) => check_totp (
159+ totp,
160+ Algorithm :: SHA1 ,
161+ 6 ,
162+ 30 ,
163+ Some ( "code 1 lastpass" . to_string ( ) ) ,
164+ Some ( "snjxxndjbdbdb" . to_string ( ) ) ,
165+ ) ,
168166 _ => panic ! ( "Should be a TOTP" ) ,
169167 }
170168
171169 match & entries[ 1 ] . content {
172- AuthenticatorEntryContent :: Totp ( totp) => {
173- check_totp (
174- totp,
175- Algorithm :: SHA1 ,
176- 6 ,
177- 30 ,
178- Some ( "code2 lastpass" . to_string ( ) ) ,
179- Some ( "ndjdbxxnbcb" . to_string ( ) ) ,
180- )
181- } ,
170+ AuthenticatorEntryContent :: Totp ( totp) => check_totp (
171+ totp,
172+ Algorithm :: SHA1 ,
173+ 6 ,
174+ 30 ,
175+ Some ( "code2 lastpass" . to_string ( ) ) ,
176+ Some ( "ndjdbxxnbcb" . to_string ( ) ) ,
177+ ) ,
182178 _ => panic ! ( "Should be a TOTP" ) ,
183179 }
184180 }
You can’t perform that action at this time.
0 commit comments