Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed May 26, 2024
1 parent a9950b1 commit ba43b17
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ repository = "https://github.com/x52dev/detrim"
license = "MIT OR Apache-2.0"
edition = "2018"
rust-version = "1.56.1"
exclude = [".*", "justfile", "flake.*"]

[package.metadata.docs.rs]
all-features = true
Expand Down
8 changes: 6 additions & 2 deletions src/cow_str.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
use alloc::{borrow::ToOwned as _, str, string::String, vec::Vec};
use alloc::{
borrow::{Cow, ToOwned as _},
str,
string::String,
vec::Vec,
};
use core::fmt;

use alloc::borrow::Cow;
use serde::{de, Deserializer};

/// Trims a CoW string during deserialization.
Expand Down
7 changes: 3 additions & 4 deletions src/hashset_string.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use core::iter::FromIterator as _;
use std::collections::HashSet;

use alloc::{borrow::ToOwned as _, string::String, vec::Vec};
use std::{
borrow::ToOwned as _, collections::HashSet, iter::FromIterator as _, string::String, vec::Vec,
};

use serde::{Deserialize as _, Deserializer};

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ mod string;
mod string_non_empty;
mod vec_string;

#[cfg(feature = "std")]
pub use crate::hashset_string::hashset_string;
pub use crate::{
cow_str::cow_str,
string::{option_string, str, string},
string_non_empty::{option_string_non_empty, string_non_empty},
vec_string::vec_string,
};
#[cfg(feature = "std")]
pub use hashset_string::hashset_string;

0 comments on commit ba43b17

Please sign in to comment.