mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-28 21:44:21 +01:00
chore: fix clippy warnings
This commit is contained in:
@@ -6,7 +6,6 @@ use std::num::NonZeroUsize;
|
||||
use std::rc::Rc;
|
||||
use std::sync::Arc;
|
||||
|
||||
use limbo_core::types::Text;
|
||||
use limbo_core::{maybe_init_database_file, LimboError, StepResult};
|
||||
use napi::iterator::Generator;
|
||||
use napi::{bindgen_prelude::ObjectFinalize, Env, JsUnknown};
|
||||
@@ -529,9 +528,7 @@ fn from_js_value(value: JsUnknown) -> napi::Result<limbo_core::Value> {
|
||||
}
|
||||
napi::ValueType::String => {
|
||||
let s = value.coerce_to_string()?;
|
||||
Ok(limbo_core::Value::Text(Text::from_str(
|
||||
s.into_utf8()?.as_str()?,
|
||||
)))
|
||||
Ok(limbo_core::Value::Text(s.into_utf8()?.as_str()?.into()))
|
||||
}
|
||||
napi::ValueType::Symbol
|
||||
| napi::ValueType::Object
|
||||
|
||||
Reference in New Issue
Block a user