Fix error: the item TryFrom is imported redundantly

This commit is contained in:
gwenn 2021-10-21 19:20:44 +02:00
parent b41bb8085c
commit 2f508e7a38

View File

@ -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 {