Skip to content

Commit

Permalink
#235 moves use into test module for build
Browse files Browse the repository at this point in the history
  • Loading branch information
atluft committed Oct 17, 2020
1 parent fca7e74 commit e667b23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/onefetch/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use {
regex::Regex,
std::collections::HashMap,
std::env,
std::fmt,
strum::{EnumIter, EnumString, IntoStaticStr},
};

Expand Down Expand Up @@ -83,6 +82,10 @@ macro_rules! define_languages {
#[cfg(test)]
mod true_colors {

use std::fmt;
use super::*;
use paste::paste;

impl fmt::Display for Colors {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let mut output = String::new();
Expand Down Expand Up @@ -110,9 +113,6 @@ macro_rules! define_languages {
}
}

use super::*;
use paste::paste;

$(
paste! {
#[test]
Expand Down

0 comments on commit e667b23

Please sign in to comment.