File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -887,7 +887,6 @@ mod tests {
887
887
888
888
#[ test]
889
889
fn from_base32 ( ) {
890
- use FromBase32 ;
891
890
assert_eq ! (
892
891
Vec :: from_base32( & [ 0x1f , 0x1c ] . check_base32( ) . unwrap( ) ) ,
893
892
Ok ( vec![ 0xff ] )
@@ -900,14 +899,11 @@ mod tests {
900
899
901
900
#[ test]
902
901
fn to_base32 ( ) {
903
- use ToBase32 ;
904
902
assert_eq ! ( [ 0xffu8 ] . to_base32( ) , [ 0x1f , 0x1c ] . check_base32( ) . unwrap( ) ) ;
905
903
}
906
904
907
905
#[ test]
908
906
fn reverse_charset ( ) {
909
- use CHARSET_REV ;
910
-
911
907
fn get_char_value ( c : char ) -> i8 {
912
908
let charset = "qpzry9x8gf2tvdw0s3jn54khce6mua7l" ;
913
909
match charset. find ( c. to_ascii_lowercase ( ) ) {
@@ -959,7 +955,6 @@ mod tests {
959
955
#[ test]
960
956
fn test_hrp_case ( ) {
961
957
// Tests for issue with HRP case checking being ignored for encoding
962
- use ToBase32 ;
963
958
let encoded_str = encode ( "HRP" , [ 0x00 , 0x00 ] . to_base32 ( ) , Variant :: Bech32 ) . unwrap ( ) ;
964
959
965
960
assert_eq ! ( encoded_str, "hrp1qqqq40atq3" ) ;
You can’t perform that action at this time.
0 commit comments