Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
chore: cleanup unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
pleshevskiy committed Jul 28, 2022
1 parent 81202b9 commit 8814c6e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/std/bool.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::core::{Aggregatable, EString, ParseFragment, ToEString};
use crate::core::{EString, ParseFragment, ToEString};
use crate::error::{Error, Reason};

impl ParseFragment for bool {
Expand All @@ -20,7 +20,7 @@ impl ToEString for bool {
}

#[cfg(feature = "aggs")]
impl Aggregatable for bool {
impl crate::core::Aggregatable for bool {
type Item = Self;

#[inline]
Expand Down
4 changes: 2 additions & 2 deletions src/std/number.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::core::{Aggregatable, EString, ParseFragment, ToEString};
use crate::core::{EString, ParseFragment, ToEString};
use crate::error::{Error, Reason};

#[doc(hidden)]
Expand All @@ -20,7 +20,7 @@ macro_rules! from_env_string_numbers_impl {
}

#[cfg(feature = "aggs")]
impl Aggregatable for $ty {
impl crate::core::Aggregatable for $ty {
type Item = Self;

#[inline]
Expand Down
6 changes: 3 additions & 3 deletions src/std/option.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::core::{Aggregatable, EString, ParseFragment, ToEString};
use crate::core::{EString, ParseFragment, ToEString};

impl<T> ToEString for Option<T>
where
Expand Down Expand Up @@ -26,9 +26,9 @@ where
}

#[cfg(feature = "aggs")]
impl<T> Aggregatable for Option<T>
impl<T> crate::core::Aggregatable for Option<T>
where
T: Aggregatable,
T: crate::core::Aggregatable,
{
type Item = T::Item;

Expand Down
2 changes: 1 addition & 1 deletion src/structs/pair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ hello=bar",
#[test]
fn should_format_pair() {
let pair = Pair::<_, '+', _>(1, 2);
assert_eq!(pair.clone().to_estring(), EString(String::from("1+2")));
assert_eq!(pair.to_estring(), EString(String::from("1+2")));
let pair_in_pair = Pair::<_, '=', _>(3, pair);
assert_eq!(pair_in_pair.to_estring(), EString(String::from("3=1+2")));
}
Expand Down
7 changes: 4 additions & 3 deletions src/structs/sep_vec.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Contains the implementations to vec type
//!
use crate::core::{Aggregatable, EString, ParseFragment, ToEString};
use crate::core::{EString, ParseFragment, ToEString};
use std::fmt::Write;

/// Wrapper for ``Vec`` to split string by a separator (`SEP`).
Expand Down Expand Up @@ -93,9 +93,9 @@ where
}

#[cfg(feature = "aggs")]
impl<T, const SEP: char> Aggregatable for SepVec<T, SEP>
impl<T, const SEP: char> crate::core::Aggregatable for SepVec<T, SEP>
where
T: Aggregatable,
T: crate::core::Aggregatable,
{
type Item = T::Item;

Expand All @@ -107,6 +107,7 @@ where
#[cfg(test)]
mod tests {
use super::*;
use crate::Aggregatable;
use crate::Pair;
use crate::{Error, Reason};

Expand Down

0 comments on commit 8814c6e

Please sign in to comment.