Skip to content

Commit 0c65318

Browse files
authored
chore: make clippy happy (#662)
1 parent 0725d43 commit 0c65318

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

bindings/nodejs/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ impl Row {
514514
}
515515

516516
#[napi]
517-
pub fn values(&self) -> Vec<Value> {
517+
pub fn values(&self) -> Vec<Value<'_>> {
518518
self.inner
519519
.values()
520520
.iter()
@@ -523,7 +523,7 @@ impl Row {
523523
}
524524

525525
#[napi]
526-
pub fn data(&self) -> HashMap<String, Value> {
526+
pub fn data(&self) -> HashMap<String, Value<'_>> {
527527
let mut map = HashMap::new();
528528
let schema = self.inner.schema();
529529
for (name, value) in schema

bindings/python/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub static VERSION: Lazy<String> = Lazy::new(|| {
3434

3535
pub static DECIMAL_CLS: GILOnceCell<Py<PyType>> = GILOnceCell::new();
3636

37-
fn get_decimal_cls(py: Python<'_>) -> PyResult<&Bound<PyType>> {
37+
fn get_decimal_cls(py: Python<'_>) -> PyResult<&Bound<'_, PyType>> {
3838
DECIMAL_CLS
3939
.get_or_try_init(py, || {
4040
py.import(intern!(py, "decimal"))?

sql/src/schema.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ struct TypeDesc<'t> {
445445
args: Vec<TypeDesc<'t>>,
446446
}
447447

448-
fn parse_type_desc(s: &str) -> Result<TypeDesc> {
448+
fn parse_type_desc(s: &str) -> Result<TypeDesc<'_>> {
449449
let mut name = "";
450450
let mut args = vec![];
451451
let mut depth = 0;

0 commit comments

Comments
 (0)