diff options
| author | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2019-11-16 21:01:54 +0100 |
|---|---|---|
| committer | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2019-11-16 21:01:54 +0100 |
| commit | 3b92173d12659231629c2205138b0857b66942f3 (patch) | |
| tree | 276cb15d1535f724eb3613de9b8b69ad457303ec /src/utils.rs | |
| parent | e16769c9b16223c491766f9c9b2c828ee2253ed4 (diff) | |
| download | mail-3b92173d12659231629c2205138b0857b66942f3.tar.gz | |
make clippy happy
Diffstat (limited to 'src/utils.rs')
| -rw-r--r-- | src/utils.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/utils.rs b/src/utils.rs index 6030f38..57e4004 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -4,6 +4,7 @@ use std::borrow::Cow; use supercow::{Supercow, DefaultFeatures/*, NonSyncFeatures*/}; use supercow::ext::{BoxedStorage}; + pub trait ToStr { fn to_str<'a>(&self) -> Result<&'a str, str::Utf8Error>; @@ -48,8 +49,3 @@ pub type ScopedPhantomcow<'a, OWNED, BORROWED = OWNED, pub type ScopedSupercow<'a, OWNED, BORROWED = OWNED, SHARED = Box<dyn DefaultFeatures<'a> + 'a>> = Supercow<'a, OWNED, BORROWED, SHARED, BoxedStorage>; - - - - - |
