mirror of
https://github.com/isar/rusqlite.git
synced 2025-10-30 05:18:56 +08:00
[breaking change] Update edition from 2018 to 2021
And fix clippy warnings
This commit is contained in:
@@ -100,7 +100,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 {
|
||||
|
||||
Reference in New Issue
Block a user