From 2f508e7a3809d13f566e9de5c2ff9518ff99cd4f Mon Sep 17 00:00:00 2001 From: gwenn Date: Thu, 21 Oct 2021 19:20:44 +0200 Subject: [PATCH] Fix error: the item `TryFrom` is imported redundantly --- src/util/sqlite_string.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/util/sqlite_string.rs b/src/util/sqlite_string.rs index d131b56..a661598 100644 --- a/src/util/sqlite_string.rs +++ b/src/util/sqlite_string.rs @@ -103,7 +103,6 @@ impl SqliteMallocString { /// This means it's safe to use in extern "C" functions even outside of /// catch_unwind. pub(crate) fn from_str(s: &str) -> Self { - use std::convert::TryFrom; let s = if s.as_bytes().contains(&0) { std::borrow::Cow::Owned(make_nonnull(s)) } else {