Skip to content

Commit

Permalink
Merge #56: Remove unnecessary imports
Browse files Browse the repository at this point in the history
7e0099a Remove unnecessary imports (Tobin Harding)

Pull request description:

  We already have a wildcard import for `super::*` in the `tests` module
  so these import statements are unnecessary.

ACKs for top commit:
  apoelstra:
    ACK 7e0099a

Tree-SHA512: 6cbcbf45c29199101b8d79c5b40520a6d8bec10bc1a2977f60090cfcf0c7cfed5c6c79b6c4f36bda8d48b4b443eec7bd30dd88dc5c8f9e5380cc2451ba87b486
  • Loading branch information
apoelstra committed Jan 6, 2022
2 parents d3c9a81 + 7e0099a commit e063fe7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,6 @@ mod tests {

#[test]
fn from_base32() {
use FromBase32;
assert_eq!(
Vec::from_base32(&[0x1f, 0x1c].check_base32().unwrap()),
Ok(vec![0xff])
Expand All @@ -900,14 +899,11 @@ mod tests {

#[test]
fn to_base32() {
use ToBase32;
assert_eq!([0xffu8].to_base32(), [0x1f, 0x1c].check_base32().unwrap());
}

#[test]
fn reverse_charset() {
use CHARSET_REV;

fn get_char_value(c: char) -> i8 {
let charset = "qpzry9x8gf2tvdw0s3jn54khce6mua7l";
match charset.find(c.to_ascii_lowercase()) {
Expand Down Expand Up @@ -959,7 +955,6 @@ mod tests {
#[test]
fn test_hrp_case() {
// Tests for issue with HRP case checking being ignored for encoding
use ToBase32;
let encoded_str = encode("HRP", [0x00, 0x00].to_base32(), Variant::Bech32).unwrap();

assert_eq!(encoded_str, "hrp1qqqq40atq3");
Expand Down

0 comments on commit e063fe7

Please sign in to comment.