Skip to content

Changed lints

Changed lints #220

Triggered via pull request December 2, 2024 20:53
Status Failure
Total duration 4m 2s
Artifacts

test.yaml

on: pull_request
Matrix: py-lint
Matrix: pytest
Fit to window
Zoom out
Zoom in

Annotations

139 errors and 41 warnings
used underscore-prefixed item: src/value_converter.rs#L1656
error: used underscore-prefixed item --> src/value_converter.rs:1656:22 | 1656 | let vector = _composite_field_postgres_to_py::<Option<PgVector>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1635
error: used underscore-prefixed item --> src/value_converter.rs:1635:35 | 1635 | let interval_array_ = _composite_field_postgres_to_py::<Option<Array<InnerInterval>>>( | ___________________________________^ 1636 | | type_, buf, is_simple, 1637 | | )?; | |_____________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1630
error: used underscore-prefixed item --> src/value_converter.rs:1630:17 | 1630 | _composite_field_postgres_to_py::<Option<Array<Circle>>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1622
error: used underscore-prefixed item --> src/value_converter.rs:1622:31 | 1622 | let lseg_array_ = _composite_field_postgres_to_py::<Option<Array<RustLineSegment>>>( | _______________________________^ 1623 | | type_, buf, is_simple, 1624 | | )?; | |_____________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1617
error: used underscore-prefixed item --> src/value_converter.rs:1617:17 | 1617 | _composite_field_postgres_to_py::<Option<Array<Line>>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1609
error: used underscore-prefixed item --> src/value_converter.rs:1609:31 | 1609 | let path_array_ = _composite_field_postgres_to_py::<Option<Array<RustLineString>>>( | _______________________________^ 1610 | | type_, buf, is_simple, 1611 | | )?; | |_____________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1604
error: used underscore-prefixed item --> src/value_converter.rs:1604:17 | 1604 | _composite_field_postgres_to_py::<Option<Array<RustRect>>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1598
error: used underscore-prefixed item --> src/value_converter.rs:1598:17 | 1598 | _composite_field_postgres_to_py::<Option<Array<RustPoint>>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1592
error: used underscore-prefixed item --> src/value_converter.rs:1592:13 | 1592 | _composite_field_postgres_to_py::<Option<Array<InnerDecimal>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1585
error: used underscore-prefixed item --> src/value_converter.rs:1585:33 | 1585 | let db_json_array = _composite_field_postgres_to_py::<Option<Array<InternalSerdeValue>>>( | _________________________________^ 1586 | | type_, buf, is_simple, 1587 | | )?; | |_____________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1581
error: used underscore-prefixed item --> src/value_converter.rs:1581:13 | 1581 | _composite_field_postgres_to_py::<Option<Array<IpAddr>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1573
error: used underscore-prefixed item --> src/value_converter.rs:1573:30 | 1573 | let uuid_array = _composite_field_postgres_to_py::<Option<Array<InternalUuid>>>( | ______________________________^ 1574 | | type_, buf, is_simple, 1575 | | )?; | |_____________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1566
error: used underscore-prefixed item --> src/value_converter.rs:1566:13 | 1566 | / _composite_field_postgres_to_py::<Option<Array<DateTime<FixedOffset>>>>( 1567 | | type_, buf, is_simple, 1568 | | )?, | |_____________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1560
error: used underscore-prefixed item --> src/value_converter.rs:1560:13 | 1560 | _composite_field_postgres_to_py::<Option<Array<NaiveDateTime>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1554
error: used underscore-prefixed item --> src/value_converter.rs:1554:13 | 1554 | _composite_field_postgres_to_py::<Option<Array<NaiveTime>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1548
error: used underscore-prefixed item --> src/value_converter.rs:1548:13 | 1548 | _composite_field_postgres_to_py::<Option<Array<NaiveDate>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1542
error: used underscore-prefixed item --> src/value_converter.rs:1542:13 | 1542 | _composite_field_postgres_to_py::<Option<Array<f64>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1536
error: used underscore-prefixed item --> src/value_converter.rs:1536:13 | 1536 | _composite_field_postgres_to_py::<Option<Array<f32>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1530
error: used underscore-prefixed item --> src/value_converter.rs:1530:13 | 1530 | _composite_field_postgres_to_py::<Option<Array<i64>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1524
error: used underscore-prefixed item --> src/value_converter.rs:1524:13 | 1524 | _composite_field_postgres_to_py::<Option<Array<i32>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1518
error: used underscore-prefixed item --> src/value_converter.rs:1518:13 | 1518 | _composite_field_postgres_to_py::<Option<Array<i16>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1511
error: used underscore-prefixed item --> src/value_converter.rs:1511:13 | 1511 | _composite_field_postgres_to_py::<Option<Array<String>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1505
error: used underscore-prefixed item --> src/value_converter.rs:1505:13 | 1505 | _composite_field_postgres_to_py::<Option<Array<bool>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1496
error: used underscore-prefixed item --> src/value_converter.rs:1496:17 | 1496 | _composite_field_postgres_to_py::<Option<Interval>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1487
error: used underscore-prefixed item --> src/value_converter.rs:1487:27 | 1487 | let circle_ = _composite_field_postgres_to_py::<Option<Circle>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1479
error: used underscore-prefixed item --> src/value_converter.rs:1479:17 | 1479 | _composite_field_postgres_to_py::<Option<RustLineSegment>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1470
error: used underscore-prefixed item --> src/value_converter.rs:1470:25 | 1470 | let line_ = _composite_field_postgres_to_py::<Option<Line>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1462
error: used underscore-prefixed item --> src/value_converter.rs:1462:17 | 1462 | _composite_field_postgres_to_py::<Option<RustLineString>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1453
error: used underscore-prefixed item --> src/value_converter.rs:1453:24 | 1453 | let box_ = _composite_field_postgres_to_py::<Option<RustRect>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1445
error: used underscore-prefixed item --> src/value_converter.rs:1445:17 | 1445 | _composite_field_postgres_to_py::<Option<RustPoint>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1436
error: used underscore-prefixed item --> src/value_converter.rs:1436:17 | 1436 | _composite_field_postgres_to_py::<Option<Decimal>>(type_, buf, is_simple)? | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1427
error: used underscore-prefixed item --> src/value_converter.rs:1427:17 | 1427 | _composite_field_postgres_to_py::<Option<RustMacAddr8>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1418
error: used underscore-prefixed item --> src/value_converter.rs:1418:17 | 1418 | _composite_field_postgres_to_py::<Option<RustMacAddr6>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1408
error: used underscore-prefixed item --> src/value_converter.rs:1408:27 | 1408 | let db_json = _composite_field_postgres_to_py::<Option<Value>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1404
error: used underscore-prefixed item --> src/value_converter.rs:1404:13 | 1404 | _composite_field_postgres_to_py::<Option<IpAddr>>(type_, buf, is_simple)?.to_object(py), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1394
error: used underscore-prefixed item --> src/value_converter.rs:1394:29 | 1394 | let rust_uuid = _composite_field_postgres_to_py::<Option<Uuid>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1386
error: used underscore-prefixed item --> src/value_converter.rs:1386:13 | 1386 | / _composite_field_postgres_to_py::<Option<DateTime<FixedOffset>>>( 1387 | | type_, buf, is_simple, 1388 | | )? | |_____________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1380
error: used underscore-prefixed item --> src/value_converter.rs:1380:31 | 1380 | Type::TIMESTAMP => Ok(_composite_field_postgres_to_py::<Option<NaiveDateTime>>( | _______________________________^ 1381 | | type_, buf, is_simple, 1382 | | )? | |_________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1375
error: used underscore-prefixed item --> src/value_converter.rs:1375:26 | 1375 | Type::TIME => Ok(_composite_field_postgres_to_py::<Option<NaiveTime>>( | __________________________^ 1376 | | type_, buf, is_simple, 1377 | | )? | |_________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1370
error: used underscore-prefixed item --> src/value_converter.rs:1370:26 | 1370 | Type::DATE => Ok(_composite_field_postgres_to_py::<Option<NaiveDate>>( | __________________________^ 1371 | | type_, buf, is_simple, 1372 | | )? | |_________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1366
error: used underscore-prefixed item --> src/value_converter.rs:1366:13 | 1366 | _composite_field_postgres_to_py::<Option<f64>>(type_, buf, is_simple)?.to_object(py), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1362
error: used underscore-prefixed item --> src/value_converter.rs:1362:13 | 1362 | _composite_field_postgres_to_py::<Option<f32>>(type_, buf, is_simple)?.to_object(py), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1356
error: used underscore-prefixed item --> src/value_converter.rs:1356:40 | 1356 | Type::INT8 | Type::MONEY => Ok(_composite_field_postgres_to_py::<Option<i64>>( | ________________________________________^ 1357 | | type_, buf, is_simple, 1358 | | )? | |_________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1353
error: used underscore-prefixed item --> src/value_converter.rs:1353:13 | 1353 | _composite_field_postgres_to_py::<Option<i32>>(type_, buf, is_simple)?.to_object(py), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1349
error: used underscore-prefixed item --> src/value_converter.rs:1349:13 | 1349 | _composite_field_postgres_to_py::<Option<i16>>(type_, buf, is_simple)?.to_object(py), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1344
error: used underscore-prefixed item --> src/value_converter.rs:1344:13 | 1344 | _composite_field_postgres_to_py::<Option<bool>>(type_, buf, is_simple)?.to_object(py), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1337
error: used underscore-prefixed item --> src/value_converter.rs:1337:54 | 1337 | Type::TEXT | Type::VARCHAR | Type::XML => Ok(_composite_field_postgres_to_py::< | ______________________________________________________^ 1338 | | Option<String>, 1339 | | >(type_, buf, is_simple)? | |________________________________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1329
error: used underscore-prefixed item --> src/value_converter.rs:1329:17 | 1329 | _composite_field_postgres_to_py::<Option<Vec<u8>>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1294
error: used underscore-prefixed item --> src/value_converter.rs:1294:44 | 1294 | let inner_pylist = _postgres_array_to_py( | ____________________________________________^ 1295 | | py, 1296 | | dimensions, 1297 | | &data[lower_bound..next_dimension.len as usize + lower_bound], 1298 | | dimension_index + 1, 1299 | | 0, 1300 | | ); | |_________________________^ | note: item is defined here --> src/value_converter.rs:1274:1 | 1274 | / fn _postgres_array_to_py<T>( 1275 | | py: Python<'_>, 1276 | | dimensions: &[Dimension], 1277 | | data: &[T], ... | 1281 | | where 1282 | | T: ToPyObject, | |__________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
unneeded `return` statement: src/value_converter.rs#L1314
error: unneeded `return` statement --> src/value_converter.rs:1314:5 | 1314 | return PyList::empty_bound(py).unbind(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 1314 - return PyList::empty_bound(py).unbind(); 1314 + PyList::empty_bound(py).unbind() |
used underscore-prefixed item: src/value_converter.rs#L1260
error: used underscore-prefixed item --> src/value_converter.rs:1260:25 | 1260 | return Some(_postgres_array_to_py( | _________________________^ 1261 | | py, 1262 | | array.dimensions(), 1263 | | array.iter().collect::<Vec<&T>>().as_slice(), 1264 | | 0, 1265 | | 0, 1266 | | )); | |_____________^ | note: item is defined here --> src/value_converter.rs:1274:1 | 1274 | / fn _postgres_array_to_py<T>( 1275 | | py: Python<'_>, 1276 | | dimensions: &[Dimension], 1277 | | data: &[T], ... | 1281 | | where 1282 | | T: ToPyObject, | |__________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
unneeded `return` statement: src/value_converter.rs#L1260
error: unneeded `return` statement --> src/value_converter.rs:1260:13 | 1260 | / return Some(_postgres_array_to_py( 1261 | | py, 1262 | | array.dimensions(), 1263 | | array.iter().collect::<Vec<&T>>().as_slice(), 1264 | | 0, 1265 | | 0, 1266 | | )); | |______________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 1260 ~ Some(_postgres_array_to_py( 1261 + py, 1262 + array.dimensions(), 1263 + array.iter().collect::<Vec<&T>>().as_slice(), 1264 + 0, 1265 + 0, 1266 ~ )) |
used underscore-prefixed item: src/value_converter.rs#L1226
error: used underscore-prefixed item --> src/value_converter.rs:1226:44 | 1226 | let inner_pylist = _pythondto_array_to_serde( | ____________________________________________^ 1227 | | dimensions, 1228 | | &data[lower_bound..next_dimension.len as usize + lower_bound], 1229 | | dimension_index + 1, 1230 | | 0, 1231 | | )?; | |_________________________^ | note: item is defined here --> src/value_converter.rs:1210:1 | 1210 | / fn _pythondto_array_to_serde( 1211 | | dimensions: &[Dimension], 1212 | | data: &[&PythonDTO], 1213 | | dimension_index: usize, 1214 | | mut lower_bound: usize, 1215 | | ) -> RustPSQLDriverPyResult<Value> { | |__________________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1197
error: used underscore-prefixed item --> src/value_converter.rs:1197:20 | 1197 | return _pythondto_array_to_serde( | ____________________^ 1198 | | array.dimensions(), 1199 | | array.iter().collect::<Vec<&PythonDTO>>().as_slice(), 1200 | | 0, 1201 | | 0, 1202 | | ); | |_____________^ | note: item is defined here --> src/value_converter.rs:1210:1 | 1210 | / fn _pythondto_array_to_serde( 1211 | | dimensions: &[Dimension], 1212 | | data: &[&PythonDTO], 1213 | | dimension_index: usize, 1214 | | mut lower_bound: usize, 1215 | | ) -> RustPSQLDriverPyResult<Value> { | |__________________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items = note: `-D clippy::used-underscore-items` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::used_underscore_items)]`
unneeded `return` statement: src/value_converter.rs#L1197
error: unneeded `return` statement --> src/value_converter.rs:1197:13 | 1197 | / return _pythondto_array_to_serde( 1198 | | array.dimensions(), 1199 | | array.iter().collect::<Vec<&PythonDTO>>().as_slice(), 1200 | | 0, 1201 | | 0, 1202 | | ); | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 1197 ~ _pythondto_array_to_serde( 1198 + array.dimensions(), 1199 + array.iter().collect::<Vec<&PythonDTO>>().as_slice(), 1200 + 0, 1201 + 0, 1202 ~ ) |
it is more idiomatic to use `Option<&T>` instead of `&Option<T>`: src/query_result.rs#L13
error: it is more idiomatic to use `Option<&T>` instead of `&Option<T>` --> src/query_result.rs:13:1 | 13 | / fn row_to_dict<'a>( 14 | | py: Python<'a>, 15 | | postgres_row: &'a Row, 16 | | custom_decoders: &Option<Py<PyDict>>, | | ------------------- help: change this to: `Option<&Py<PyDict>>` ... | 23 | | Ok(python_dict) 24 | | } | |_^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_option
it is more idiomatic to use `Option<&T>` instead of `&Option<T>`: src/driver/cursor.rs#L17
error: it is more idiomatic to use `Option<&T>` instead of `&Option<T>` --> src/driver/cursor.rs:17:5 | 17 | / async fn cursor_start( 18 | | &self, 19 | | cursor_name: &str, 20 | | scroll: &Option<bool>, ... | 23 | | parameters: &Option<Py<PyAny>>, 24 | | ) -> RustPSQLDriverPyResult<()>; | |____________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_option = note: `-D clippy::ref-option` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::ref_option)]` help: change this to | 20 ~ scroll: Option<&bool>, 21 | querystring: &str, 22 ~ prepared: Option<&bool>, 23 ~ parameters: Option<&Py<PyAny>>, |
unneeded `return` statement: src/additional_types.rs#L576
error: unneeded `return` statement --> src/additional_types.rs:576:9 | 576 | return PyTuple::new_bound(py, result_vec).into(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 576 - return PyTuple::new_bound(py, result_vec).into(); 576 + PyTuple::new_bound(py, result_vec).into() |
the following explicit lifetimes could be elided: 'a: src/additional_types.rs#L566
error: the following explicit lifetimes could be elided: 'a --> src/additional_types.rs:566:6 | 566 | impl<'a> IntoPy<PyObject> for &'a Circle { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 566 - impl<'a> IntoPy<PyObject> for &'a Circle { 566 + impl IntoPy<PyObject> for &Circle { |
unneeded `return` statement: src/additional_types.rs#L457
error: unneeded `return` statement --> src/additional_types.rs:457:9 | 457 | return PyTuple::new_bound(py, result_vec).into(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 457 - return PyTuple::new_bound(py, result_vec).into(); 457 + PyTuple::new_bound(py, result_vec).into() |
the following explicit lifetimes could be elided: 'a: src/additional_types.rs#L448
error: the following explicit lifetimes could be elided: 'a --> src/additional_types.rs:448:6 | 448 | impl<'a> IntoPy<PyObject> for &'a Line { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 448 - impl<'a> IntoPy<PyObject> for &'a Line { 448 + impl IntoPy<PyObject> for &Line { |
unneeded `return` statement: src/additional_types.rs#L275
error: unneeded `return` statement --> src/additional_types.rs:275:9 | 275 | return PyList::new_bound(py, result_vec).into(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 275 - return PyList::new_bound(py, result_vec).into(); 275 + PyList::new_bound(py, result_vec).into() |
the following explicit lifetimes could be elided: 'a: src/additional_types.rs#L262
error: the following explicit lifetimes could be elided: 'a --> src/additional_types.rs:262:6 | 262 | impl<'a> IntoPy<PyObject> for &'a RustLineSegment { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 262 - impl<'a> IntoPy<PyObject> for &'a RustLineSegment { 262 + impl IntoPy<PyObject> for &RustLineSegment { |
unneeded `return` statement: src/additional_types.rs#L227
error: unneeded `return` statement --> src/additional_types.rs:227:9 | 227 | return PyList::new_bound(py, result_vec).into(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 227 - return PyList::new_bound(py, result_vec).into(); 227 + PyList::new_bound(py, result_vec).into() |
the following explicit lifetimes could be elided: 'a: src/additional_types.rs#L211
error: the following explicit lifetimes could be elided: 'a --> src/additional_types.rs:211:6 | 211 | impl<'a> IntoPy<PyObject> for &'a RustLineString { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 211 - impl<'a> IntoPy<PyObject> for &'a RustLineString { 211 + impl IntoPy<PyObject> for &RustLineString { |
unneeded `return` statement: src/additional_types.rs#L176
error: unneeded `return` statement --> src/additional_types.rs:176:9 | 176 | return PyTuple::new_bound(py, result_vec).into(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 176 - return PyTuple::new_bound(py, result_vec).into(); 176 + PyTuple::new_bound(py, result_vec).into() |
the following explicit lifetimes could be elided: 'a: src/additional_types.rs#L160
error: the following explicit lifetimes could be elided: 'a --> src/additional_types.rs:160:6 | 160 | impl<'a> IntoPy<PyObject> for &'a RustRect { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 160 - impl<'a> IntoPy<PyObject> for &'a RustRect { 160 + impl IntoPy<PyObject> for &RustRect { |
unneeded `return` statement: src/additional_types.rs#L121
error: unneeded `return` statement --> src/additional_types.rs:121:9 | 121 | / return PyTuple::new_bound( 122 | | py, 123 | | vec![inner_value.x().into_py(py), inner_value.y().into_py(py)], 124 | | ) 125 | | .into(); | |_______________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return = note: `-D clippy::needless-return` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::needless_return)]` help: remove `return` | 121 ~ PyTuple::new_bound( 122 + py, 123 + vec![inner_value.x().into_py(py), inner_value.y().into_py(py)], 124 + ) 125 ~ .into() |
the following explicit lifetimes could be elided: 'a: src/additional_types.rs#L117
error: the following explicit lifetimes could be elided: 'a --> src/additional_types.rs:117:6 | 117 | impl<'a> IntoPy<PyObject> for &'a RustPoint { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `-D clippy::needless-lifetimes` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::needless_lifetimes)]` help: elide the lifetimes | 117 - impl<'a> IntoPy<PyObject> for &'a RustPoint { 117 + impl IntoPy<PyObject> for &RustPoint { |
clippy
Clippy had exited with the 101 exit code
used underscore-prefixed item: src/value_converter.rs#L1656
error: used underscore-prefixed item --> src/value_converter.rs:1656:22 | 1656 | let vector = _composite_field_postgres_to_py::<Option<PgVector>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1635
error: used underscore-prefixed item --> src/value_converter.rs:1635:35 | 1635 | let interval_array_ = _composite_field_postgres_to_py::<Option<Array<InnerInterval>>>( | ___________________________________^ 1636 | | type_, buf, is_simple, 1637 | | )?; | |_____________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1630
error: used underscore-prefixed item --> src/value_converter.rs:1630:17 | 1630 | _composite_field_postgres_to_py::<Option<Array<Circle>>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1622
error: used underscore-prefixed item --> src/value_converter.rs:1622:31 | 1622 | let lseg_array_ = _composite_field_postgres_to_py::<Option<Array<RustLineSegment>>>( | _______________________________^ 1623 | | type_, buf, is_simple, 1624 | | )?; | |_____________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1617
error: used underscore-prefixed item --> src/value_converter.rs:1617:17 | 1617 | _composite_field_postgres_to_py::<Option<Array<Line>>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1609
error: used underscore-prefixed item --> src/value_converter.rs:1609:31 | 1609 | let path_array_ = _composite_field_postgres_to_py::<Option<Array<RustLineString>>>( | _______________________________^ 1610 | | type_, buf, is_simple, 1611 | | )?; | |_____________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1604
error: used underscore-prefixed item --> src/value_converter.rs:1604:17 | 1604 | _composite_field_postgres_to_py::<Option<Array<RustRect>>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1598
error: used underscore-prefixed item --> src/value_converter.rs:1598:17 | 1598 | _composite_field_postgres_to_py::<Option<Array<RustPoint>>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1592
error: used underscore-prefixed item --> src/value_converter.rs:1592:13 | 1592 | _composite_field_postgres_to_py::<Option<Array<InnerDecimal>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1585
error: used underscore-prefixed item --> src/value_converter.rs:1585:33 | 1585 | let db_json_array = _composite_field_postgres_to_py::<Option<Array<InternalSerdeValue>>>( | _________________________________^ 1586 | | type_, buf, is_simple, 1587 | | )?; | |_____________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1581
error: used underscore-prefixed item --> src/value_converter.rs:1581:13 | 1581 | _composite_field_postgres_to_py::<Option<Array<IpAddr>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1573
error: used underscore-prefixed item --> src/value_converter.rs:1573:30 | 1573 | let uuid_array = _composite_field_postgres_to_py::<Option<Array<InternalUuid>>>( | ______________________________^ 1574 | | type_, buf, is_simple, 1575 | | )?; | |_____________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1566
error: used underscore-prefixed item --> src/value_converter.rs:1566:13 | 1566 | / _composite_field_postgres_to_py::<Option<Array<DateTime<FixedOffset>>>>( 1567 | | type_, buf, is_simple, 1568 | | )?, | |_____________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1560
error: used underscore-prefixed item --> src/value_converter.rs:1560:13 | 1560 | _composite_field_postgres_to_py::<Option<Array<NaiveDateTime>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1554
error: used underscore-prefixed item --> src/value_converter.rs:1554:13 | 1554 | _composite_field_postgres_to_py::<Option<Array<NaiveTime>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1548
error: used underscore-prefixed item --> src/value_converter.rs:1548:13 | 1548 | _composite_field_postgres_to_py::<Option<Array<NaiveDate>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1542
error: used underscore-prefixed item --> src/value_converter.rs:1542:13 | 1542 | _composite_field_postgres_to_py::<Option<Array<f64>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1536
error: used underscore-prefixed item --> src/value_converter.rs:1536:13 | 1536 | _composite_field_postgres_to_py::<Option<Array<f32>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1530
error: used underscore-prefixed item --> src/value_converter.rs:1530:13 | 1530 | _composite_field_postgres_to_py::<Option<Array<i64>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1524
error: used underscore-prefixed item --> src/value_converter.rs:1524:13 | 1524 | _composite_field_postgres_to_py::<Option<Array<i32>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1518
error: used underscore-prefixed item --> src/value_converter.rs:1518:13 | 1518 | _composite_field_postgres_to_py::<Option<Array<i16>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1511
error: used underscore-prefixed item --> src/value_converter.rs:1511:13 | 1511 | _composite_field_postgres_to_py::<Option<Array<String>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1505
error: used underscore-prefixed item --> src/value_converter.rs:1505:13 | 1505 | _composite_field_postgres_to_py::<Option<Array<bool>>>(type_, buf, is_simple)?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1496
error: used underscore-prefixed item --> src/value_converter.rs:1496:17 | 1496 | _composite_field_postgres_to_py::<Option<Interval>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1487
error: used underscore-prefixed item --> src/value_converter.rs:1487:27 | 1487 | let circle_ = _composite_field_postgres_to_py::<Option<Circle>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1479
error: used underscore-prefixed item --> src/value_converter.rs:1479:17 | 1479 | _composite_field_postgres_to_py::<Option<RustLineSegment>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1470
error: used underscore-prefixed item --> src/value_converter.rs:1470:25 | 1470 | let line_ = _composite_field_postgres_to_py::<Option<Line>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1462
error: used underscore-prefixed item --> src/value_converter.rs:1462:17 | 1462 | _composite_field_postgres_to_py::<Option<RustLineString>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1453
error: used underscore-prefixed item --> src/value_converter.rs:1453:24 | 1453 | let box_ = _composite_field_postgres_to_py::<Option<RustRect>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1445
error: used underscore-prefixed item --> src/value_converter.rs:1445:17 | 1445 | _composite_field_postgres_to_py::<Option<RustPoint>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1436
error: used underscore-prefixed item --> src/value_converter.rs:1436:17 | 1436 | _composite_field_postgres_to_py::<Option<Decimal>>(type_, buf, is_simple)? | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1427
error: used underscore-prefixed item --> src/value_converter.rs:1427:17 | 1427 | _composite_field_postgres_to_py::<Option<RustMacAddr8>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1418
error: used underscore-prefixed item --> src/value_converter.rs:1418:17 | 1418 | _composite_field_postgres_to_py::<Option<RustMacAddr6>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1408
error: used underscore-prefixed item --> src/value_converter.rs:1408:27 | 1408 | let db_json = _composite_field_postgres_to_py::<Option<Value>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1404
error: used underscore-prefixed item --> src/value_converter.rs:1404:13 | 1404 | _composite_field_postgres_to_py::<Option<IpAddr>>(type_, buf, is_simple)?.to_object(py), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1394
error: used underscore-prefixed item --> src/value_converter.rs:1394:29 | 1394 | let rust_uuid = _composite_field_postgres_to_py::<Option<Uuid>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1386
error: used underscore-prefixed item --> src/value_converter.rs:1386:13 | 1386 | / _composite_field_postgres_to_py::<Option<DateTime<FixedOffset>>>( 1387 | | type_, buf, is_simple, 1388 | | )? | |_____________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1380
error: used underscore-prefixed item --> src/value_converter.rs:1380:31 | 1380 | Type::TIMESTAMP => Ok(_composite_field_postgres_to_py::<Option<NaiveDateTime>>( | _______________________________^ 1381 | | type_, buf, is_simple, 1382 | | )? | |_________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1375
error: used underscore-prefixed item --> src/value_converter.rs:1375:26 | 1375 | Type::TIME => Ok(_composite_field_postgres_to_py::<Option<NaiveTime>>( | __________________________^ 1376 | | type_, buf, is_simple, 1377 | | )? | |_________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1370
error: used underscore-prefixed item --> src/value_converter.rs:1370:26 | 1370 | Type::DATE => Ok(_composite_field_postgres_to_py::<Option<NaiveDate>>( | __________________________^ 1371 | | type_, buf, is_simple, 1372 | | )? | |_________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1366
error: used underscore-prefixed item --> src/value_converter.rs:1366:13 | 1366 | _composite_field_postgres_to_py::<Option<f64>>(type_, buf, is_simple)?.to_object(py), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1362
error: used underscore-prefixed item --> src/value_converter.rs:1362:13 | 1362 | _composite_field_postgres_to_py::<Option<f32>>(type_, buf, is_simple)?.to_object(py), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1356
error: used underscore-prefixed item --> src/value_converter.rs:1356:40 | 1356 | Type::INT8 | Type::MONEY => Ok(_composite_field_postgres_to_py::<Option<i64>>( | ________________________________________^ 1357 | | type_, buf, is_simple, 1358 | | )? | |_________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1353
error: used underscore-prefixed item --> src/value_converter.rs:1353:13 | 1353 | _composite_field_postgres_to_py::<Option<i32>>(type_, buf, is_simple)?.to_object(py), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1349
error: used underscore-prefixed item --> src/value_converter.rs:1349:13 | 1349 | _composite_field_postgres_to_py::<Option<i16>>(type_, buf, is_simple)?.to_object(py), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1344
error: used underscore-prefixed item --> src/value_converter.rs:1344:13 | 1344 | _composite_field_postgres_to_py::<Option<bool>>(type_, buf, is_simple)?.to_object(py), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1337
error: used underscore-prefixed item --> src/value_converter.rs:1337:54 | 1337 | Type::TEXT | Type::VARCHAR | Type::XML => Ok(_composite_field_postgres_to_py::< | ______________________________________________________^ 1338 | | Option<String>, 1339 | | >(type_, buf, is_simple)? | |________________________________^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1329
error: used underscore-prefixed item --> src/value_converter.rs:1329:17 | 1329 | _composite_field_postgres_to_py::<Option<Vec<u8>>>(type_, buf, is_simple)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: item is defined here --> src/value_converter.rs:1172:1 | 1172 | / fn _composite_field_postgres_to_py<'a, T: FromSql<'a>>( 1173 | | type_: &Type, 1174 | | buf: &mut &'a [u8], 1175 | | is_simple: bool, 1176 | | ) -> RustPSQLDriverPyResult<T> { | |______________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1294
error: used underscore-prefixed item --> src/value_converter.rs:1294:44 | 1294 | let inner_pylist = _postgres_array_to_py( | ____________________________________________^ 1295 | | py, 1296 | | dimensions, 1297 | | &data[lower_bound..next_dimension.len as usize + lower_bound], 1298 | | dimension_index + 1, 1299 | | 0, 1300 | | ); | |_________________________^ | note: item is defined here --> src/value_converter.rs:1274:1 | 1274 | / fn _postgres_array_to_py<T>( 1275 | | py: Python<'_>, 1276 | | dimensions: &[Dimension], 1277 | | data: &[T], ... | 1281 | | where 1282 | | T: ToPyObject, | |__________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
unneeded `return` statement: src/value_converter.rs#L1314
error: unneeded `return` statement --> src/value_converter.rs:1314:5 | 1314 | return PyList::empty_bound(py).unbind(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 1314 - return PyList::empty_bound(py).unbind(); 1314 + PyList::empty_bound(py).unbind() |
used underscore-prefixed item: src/value_converter.rs#L1260
error: used underscore-prefixed item --> src/value_converter.rs:1260:25 | 1260 | return Some(_postgres_array_to_py( | _________________________^ 1261 | | py, 1262 | | array.dimensions(), 1263 | | array.iter().collect::<Vec<&T>>().as_slice(), 1264 | | 0, 1265 | | 0, 1266 | | )); | |_____________^ | note: item is defined here --> src/value_converter.rs:1274:1 | 1274 | / fn _postgres_array_to_py<T>( 1275 | | py: Python<'_>, 1276 | | dimensions: &[Dimension], 1277 | | data: &[T], ... | 1281 | | where 1282 | | T: ToPyObject, | |__________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
unneeded `return` statement: src/value_converter.rs#L1260
error: unneeded `return` statement --> src/value_converter.rs:1260:13 | 1260 | / return Some(_postgres_array_to_py( 1261 | | py, 1262 | | array.dimensions(), 1263 | | array.iter().collect::<Vec<&T>>().as_slice(), 1264 | | 0, 1265 | | 0, 1266 | | )); | |______________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 1260 ~ Some(_postgres_array_to_py( 1261 + py, 1262 + array.dimensions(), 1263 + array.iter().collect::<Vec<&T>>().as_slice(), 1264 + 0, 1265 + 0, 1266 ~ )) |
used underscore-prefixed item: src/value_converter.rs#L1226
error: used underscore-prefixed item --> src/value_converter.rs:1226:44 | 1226 | let inner_pylist = _pythondto_array_to_serde( | ____________________________________________^ 1227 | | dimensions, 1228 | | &data[lower_bound..next_dimension.len as usize + lower_bound], 1229 | | dimension_index + 1, 1230 | | 0, 1231 | | )?; | |_________________________^ | note: item is defined here --> src/value_converter.rs:1210:1 | 1210 | / fn _pythondto_array_to_serde( 1211 | | dimensions: &[Dimension], 1212 | | data: &[&PythonDTO], 1213 | | dimension_index: usize, 1214 | | mut lower_bound: usize, 1215 | | ) -> RustPSQLDriverPyResult<Value> { | |__________________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
used underscore-prefixed item: src/value_converter.rs#L1197
error: used underscore-prefixed item --> src/value_converter.rs:1197:20 | 1197 | return _pythondto_array_to_serde( | ____________________^ 1198 | | array.dimensions(), 1199 | | array.iter().collect::<Vec<&PythonDTO>>().as_slice(), 1200 | | 0, 1201 | | 0, 1202 | | ); | |_____________^ | note: item is defined here --> src/value_converter.rs:1210:1 | 1210 | / fn _pythondto_array_to_serde( 1211 | | dimensions: &[Dimension], 1212 | | data: &[&PythonDTO], 1213 | | dimension_index: usize, 1214 | | mut lower_bound: usize, 1215 | | ) -> RustPSQLDriverPyResult<Value> { | |__________________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items = note: `-D clippy::used-underscore-items` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::used_underscore_items)]`
unneeded `return` statement: src/value_converter.rs#L1197
error: unneeded `return` statement --> src/value_converter.rs:1197:13 | 1197 | / return _pythondto_array_to_serde( 1198 | | array.dimensions(), 1199 | | array.iter().collect::<Vec<&PythonDTO>>().as_slice(), 1200 | | 0, 1201 | | 0, 1202 | | ); | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 1197 ~ _pythondto_array_to_serde( 1198 + array.dimensions(), 1199 + array.iter().collect::<Vec<&PythonDTO>>().as_slice(), 1200 + 0, 1201 + 0, 1202 ~ ) |
it is more idiomatic to use `Option<&T>` instead of `&Option<T>`: src/query_result.rs#L13
error: it is more idiomatic to use `Option<&T>` instead of `&Option<T>` --> src/query_result.rs:13:1 | 13 | / fn row_to_dict<'a>( 14 | | py: Python<'a>, 15 | | postgres_row: &'a Row, 16 | | custom_decoders: &Option<Py<PyDict>>, | | ------------------- help: change this to: `Option<&Py<PyDict>>` ... | 23 | | Ok(python_dict) 24 | | } | |_^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_option
it is more idiomatic to use `Option<&T>` instead of `&Option<T>`: src/driver/cursor.rs#L17
error: it is more idiomatic to use `Option<&T>` instead of `&Option<T>` --> src/driver/cursor.rs:17:5 | 17 | / async fn cursor_start( 18 | | &self, 19 | | cursor_name: &str, 20 | | scroll: &Option<bool>, ... | 23 | | parameters: &Option<Py<PyAny>>, 24 | | ) -> RustPSQLDriverPyResult<()>; | |____________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_option = note: `-D clippy::ref-option` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::ref_option)]` help: change this to | 20 ~ scroll: Option<&bool>, 21 | querystring: &str, 22 ~ prepared: Option<&bool>, 23 ~ parameters: Option<&Py<PyAny>>, |
unneeded `return` statement: src/additional_types.rs#L576
error: unneeded `return` statement --> src/additional_types.rs:576:9 | 576 | return PyTuple::new_bound(py, result_vec).into(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 576 - return PyTuple::new_bound(py, result_vec).into(); 576 + PyTuple::new_bound(py, result_vec).into() |
the following explicit lifetimes could be elided: 'a: src/additional_types.rs#L566
error: the following explicit lifetimes could be elided: 'a --> src/additional_types.rs:566:6 | 566 | impl<'a> IntoPy<PyObject> for &'a Circle { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 566 - impl<'a> IntoPy<PyObject> for &'a Circle { 566 + impl IntoPy<PyObject> for &Circle { |
unneeded `return` statement: src/additional_types.rs#L457
error: unneeded `return` statement --> src/additional_types.rs:457:9 | 457 | return PyTuple::new_bound(py, result_vec).into(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 457 - return PyTuple::new_bound(py, result_vec).into(); 457 + PyTuple::new_bound(py, result_vec).into() |
the following explicit lifetimes could be elided: 'a: src/additional_types.rs#L448
error: the following explicit lifetimes could be elided: 'a --> src/additional_types.rs:448:6 | 448 | impl<'a> IntoPy<PyObject> for &'a Line { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 448 - impl<'a> IntoPy<PyObject> for &'a Line { 448 + impl IntoPy<PyObject> for &Line { |
unneeded `return` statement: src/additional_types.rs#L275
error: unneeded `return` statement --> src/additional_types.rs:275:9 | 275 | return PyList::new_bound(py, result_vec).into(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 275 - return PyList::new_bound(py, result_vec).into(); 275 + PyList::new_bound(py, result_vec).into() |
the following explicit lifetimes could be elided: 'a: src/additional_types.rs#L262
error: the following explicit lifetimes could be elided: 'a --> src/additional_types.rs:262:6 | 262 | impl<'a> IntoPy<PyObject> for &'a RustLineSegment { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 262 - impl<'a> IntoPy<PyObject> for &'a RustLineSegment { 262 + impl IntoPy<PyObject> for &RustLineSegment { |
unneeded `return` statement: src/additional_types.rs#L227
error: unneeded `return` statement --> src/additional_types.rs:227:9 | 227 | return PyList::new_bound(py, result_vec).into(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 227 - return PyList::new_bound(py, result_vec).into(); 227 + PyList::new_bound(py, result_vec).into() |
the following explicit lifetimes could be elided: 'a: src/additional_types.rs#L211
error: the following explicit lifetimes could be elided: 'a --> src/additional_types.rs:211:6 | 211 | impl<'a> IntoPy<PyObject> for &'a RustLineString { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 211 - impl<'a> IntoPy<PyObject> for &'a RustLineString { 211 + impl IntoPy<PyObject> for &RustLineString { |
unneeded `return` statement: src/additional_types.rs#L176
error: unneeded `return` statement --> src/additional_types.rs:176:9 | 176 | return PyTuple::new_bound(py, result_vec).into(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 176 - return PyTuple::new_bound(py, result_vec).into(); 176 + PyTuple::new_bound(py, result_vec).into() |
the following explicit lifetimes could be elided: 'a: src/additional_types.rs#L160
error: the following explicit lifetimes could be elided: 'a --> src/additional_types.rs:160:6 | 160 | impl<'a> IntoPy<PyObject> for &'a RustRect { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 160 - impl<'a> IntoPy<PyObject> for &'a RustRect { 160 + impl IntoPy<PyObject> for &RustRect { |
unneeded `return` statement: src/additional_types.rs#L121
error: unneeded `return` statement --> src/additional_types.rs:121:9 | 121 | / return PyTuple::new_bound( 122 | | py, 123 | | vec![inner_value.x().into_py(py), inner_value.y().into_py(py)], 124 | | ) 125 | | .into(); | |_______________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return = note: `-D clippy::needless-return` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::needless_return)]` help: remove `return` | 121 ~ PyTuple::new_bound( 122 + py, 123 + vec![inner_value.x().into_py(py), inner_value.y().into_py(py)], 124 + ) 125 ~ .into() |
the following explicit lifetimes could be elided: 'a: src/additional_types.rs#L117
error: the following explicit lifetimes could be elided: 'a --> src/additional_types.rs:117:6 | 117 | impl<'a> IntoPy<PyObject> for &'a RustPoint { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `-D clippy::needless-lifetimes` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::needless_lifetimes)]` help: elide the lifetimes | 117 - impl<'a> IntoPy<PyObject> for &'a RustPoint { 117 + impl IntoPy<PyObject> for &RustPoint { |
fmt
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
py-lint (mypy)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ubuntu-latest-3.9
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ubuntu-latest-3.9
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.9
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.9
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.9
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.10
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ubuntu-latest-3.10
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.10
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.10
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.10
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.12
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ubuntu-latest-3.12
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.12
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.12
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.12
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.8
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ubuntu-latest-3.8
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.8
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.8
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.8
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.13
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ubuntu-latest-3.13
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.13
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.13
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.13
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.11
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ubuntu-latest-3.11
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.11
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.11
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
ubuntu-latest-3.11
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/