mirror of
https://github.com/isar/rusqlite.git
synced 2025-01-20 03:50:52 +08:00
Fix error: the item TryFrom
is imported redundantly
This commit is contained in:
parent
b41bb8085c
commit
2f508e7a38
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user