New way to define parameters type #283
test.yaml
on: pull_request
fmt
8s
clippy
2m 14s
Matrix: pytest
Annotations
4 errors and 316 warnings
|
ubuntu-latest-3.13
The operation was canceled.
|
|
ubuntu-latest-3.13
The job has exceeded the maximum execution time of 6h0m0s
|
|
ubuntu-latest-3.9
The operation was canceled.
|
|
ubuntu-latest-3.9
The job has exceeded the maximum execution time of 6h0m0s
|
|
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/
|
|
this type has been superceded by `LazyLock` in the standard library:
src/value_converter/consts.rs#L14
warning: this type has been superceded by `LazyLock` in the standard library
--> src/value_converter/consts.rs:14:33
|
14 | pub static KWARGS_QUERYSTRINGS: Lazy<RwLock<HashMap<String, (String, Vec<String>)>>> =
| ^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_std_lazy_statics
help: use `std::sync::LazyLock` instead
|
14 ~ pub static KWARGS_QUERYSTRINGS: std::sync::LazyLock<RwLock<HashMap<String, (String, Vec<String>)>>> =
15 ~ std::sync::LazyLock::new(|| RwLock::new(Default::default()));
|
|
|
this type has been superceded by `LazyLock` in the standard library:
src/statement/cache.rs#L49
warning: this type has been superceded by `LazyLock` in the standard library
--> src/statement/cache.rs:49:32
|
49 | pub(crate) static STMTS_CACHE: Lazy<RwLock<StatementsCache>> =
| ^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_std_lazy_statics
= note: `-W clippy::non-std-lazy-statics` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::non_std_lazy_statics)]`
help: use `std::sync::LazyLock` instead
|
49 ~ pub(crate) static STMTS_CACHE: std::sync::LazyLock<RwLock<StatementsCache>> =
50 ~ std::sync::LazyLock::new(|| RwLock::new(Default::default()));
|
|
|
unused `async` for function with no await statements:
src/driver/listener/core.rs#L232
warning: unused `async` for function with no await statements
--> src/driver/listener/core.rs:232:5
|
232 | / async fn shutdown(&mut self) {
233 | | self.abort_listen();
234 | | std::mem::take(&mut self.connection);
235 | | std::mem::take(&mut self.receiver);
236 | |
237 | | self.is_started = false;
238 | | }
| |_____^
|
= help: consider removing the `async` from this function
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_async
= note: `-W clippy::unused-async` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::unused_async)]`
|
|
docs for function returning `Result` missing `# Errors` section:
src/value_converter/traits.rs#L13
warning: docs for function returning `Result` missing `# Errors` section
--> src/value_converter/traits.rs:13:5
|
13 | / fn to_python_dto(
14 | | python_param: &pyo3::Bound<'_, PyAny>,
15 | | array_type_: Type,
16 | | ) -> PSQLPyResult<PythonDTO>;
| |_________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
|
docs for function returning `Result` missing `# Errors` section:
src/value_converter/traits.rs#L9
warning: docs for function returning `Result` missing `# Errors` section
--> src/value_converter/traits.rs:9:5
|
9 | fn to_python_dto(python_param: &pyo3::Bound<'_, PyAny>) -> PSQLPyResult<PythonDTO>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
|
unnecessary semicolon:
src/value_converter/to_python.rs#L144
warning: unnecessary semicolon
--> src/value_converter/to_python.rs:144:22
|
144 | };
| ^ help: remove
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon
|
|
unnecessary semicolon:
src/value_converter/models/serde_value.rs#L166
warning: unnecessary semicolon
--> src/value_converter/models/serde_value.rs:166:22
|
166 | };
| ^ help: remove
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon
|
|
docs for function returning `Result` missing `# Errors` section:
src/value_converter/models/serde_value.rs#L125
warning: docs for function returning `Result` missing `# Errors` section
--> src/value_converter/models/serde_value.rs:125:1
|
125 | pub fn pythondto_array_to_serde(array: Option<Array<PythonDTO>>) -> PSQLPyResult<Value> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
|
unneeded `return` statement:
src/value_converter/models/serde_value.rs#L111
warning: unneeded `return` statement
--> src/value_converter/models/serde_value.rs:111:13
|
111 | return serde_value_from_list(gil, value);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
111 - return serde_value_from_list(gil, value);
111 + serde_value_from_list(gil, value)
|
|
|
unneeded `return` statement:
src/value_converter/models/serde_value.rs#L100
warning: unneeded `return` statement
--> src/value_converter/models/serde_value.rs:100:5
|
100 | return Ok(Value::Object(serde_map));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
100 - return Ok(Value::Object(serde_map));
100 + Ok(Value::Object(serde_map))
|
|
|
unnecessary semicolon:
src/value_converter/from_python.rs#L787
warning: unnecessary semicolon
--> src/value_converter/from_python.rs:787:6
|
787 | };
| ^ help: remove
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon
|
|
unnecessary semicolon:
src/value_converter/from_python.rs#L748
warning: unnecessary semicolon
--> src/value_converter/from_python.rs:748:10
|
748 | };
| ^ help: remove
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon
|
|
unnecessary semicolon:
src/value_converter/from_python.rs#L739
warning: unnecessary semicolon
--> src/value_converter/from_python.rs:739:10
|
739 | };
| ^ help: remove
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon
|
|
unnecessary semicolon:
src/value_converter/from_python.rs#L697
warning: unnecessary semicolon
--> src/value_converter/from_python.rs:697:10
|
697 | };
| ^ help: remove
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon
|
|
unnecessary semicolon:
src/value_converter/from_python.rs#L631
warning: unnecessary semicolon
--> src/value_converter/from_python.rs:631:14
|
631 | };
| ^ help: remove
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon
|
|
useless use of `format!`:
src/value_converter/from_python.rs#L430
warning: useless use of `format!`
--> src/value_converter/from_python.rs:430:59
|
430 | Err(RustPSQLDriverError::PyToRustValueConversionError(format!(
| ___________________________________________________________^
431 | | "Cannot convert parameter in extra types Array",
432 | | )))
| |_____^ help: consider using `.to_string()`: `"Cannot convert parameter in extra types Array".to_string()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
= note: `-W clippy::useless-format` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::useless_format)]`
|
|
variables can be used directly in the `format!` string:
src/value_converter/from_python.rs#L198
warning: variables can be used directly in the `format!` string
--> src/value_converter/from_python.rs:198:5
|
198 | println!("{:?} {:?}", type_, parameter);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
198 - println!("{:?} {:?}", type_, parameter);
198 + println!("{type_:?} {parameter:?}");
|
|
|
this function could have a `#[must_use]` attribute:
src/value_converter/dto/funcs.rs#L3
warning: this function could have a `#[must_use]` attribute
--> src/value_converter/dto/funcs.rs:3:1
|
3 | pub fn array_type_to_single_type(array_type: &Type) -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn array_type_to_single_type(array_type: &Type) -> Type`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
|
unneeded `return` statement:
src/value_converter/dto/converter_impls.rs#L93
warning: unneeded `return` statement
--> src/value_converter/dto/converter_impls.rs:93:9
|
93 | return Ok(PythonDTO::PyJsonb(serde_value));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
93 - return Ok(PythonDTO::PyJsonb(serde_value));
93 + Ok(PythonDTO::PyJsonb(serde_value))
|
|
|
unneeded `return` statement:
src/value_converter/dto/converter_impls.rs#L83
warning: unneeded `return` statement
--> src/value_converter/dto/converter_impls.rs:83:9
|
83 | / return Err(RustPSQLDriverError::PyToRustValueConversionError(
84 | | "Cannot convert timedelta from Python to inner Rust type.".to_string(),
85 | | ));
| |__________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
83 ~ Err(RustPSQLDriverError::PyToRustValueConversionError(
84 + "Cannot convert timedelta from Python to inner Rust type.".to_string(),
85 ~ ))
|
|
|
unneeded `return` statement:
src/value_converter/dto/converter_impls.rs#L71
warning: unneeded `return` statement
--> src/value_converter/dto/converter_impls.rs:71:9
|
71 | / return Err(RustPSQLDriverError::PyToRustValueConversionError(
72 | | "Can not convert you datetime to rust type".into(),
73 | | ));
| |__________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
71 ~ Err(RustPSQLDriverError::PyToRustValueConversionError(
72 + "Can not convert you datetime to rust type".into(),
73 ~ ))
|
|
|
docs for function returning `Result` missing `# Errors` section:
src/value_converter/consts.rs#L26
warning: docs for function returning `Result` missing `# Errors` section
--> src/value_converter/consts.rs:26:1
|
26 | pub fn get_timedelta_cls(py: Python<'_>) -> PyResult<&Bound<'_, PyType>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
|
docs for function returning `Result` missing `# Errors` section:
src/value_converter/consts.rs#L17
warning: docs for function returning `Result` missing `# Errors` section
--> src/value_converter/consts.rs:17:1
|
17 | pub fn get_decimal_cls(py: Python<'_>) -> PyResult<&Bound<'_, PyType>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
|
calling `HashMap::default()` is more clear than this expression:
src/value_converter/consts.rs#L15
warning: calling `HashMap::default()` is more clear than this expression
--> src/value_converter/consts.rs:15:30
|
15 | Lazy::new(|| RwLock::new(Default::default()));
| ^^^^^^^^^^^^^^^^^^ help: try: `HashMap::default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access
|
|
very complex type used. Consider factoring parts into `type` definitions:
src/value_converter/consts.rs#L14
warning: very complex type used. Consider factoring parts into `type` definitions
--> src/value_converter/consts.rs:14:33
|
14 | pub static KWARGS_QUERYSTRINGS: Lazy<RwLock<HashMap<String, (String, Vec<String>)>>> =
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
= note: `-W clippy::type-complexity` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::type_complexity)]`
|
|
manual implementation of `Option::map`:
src/statement/statement_builder.rs#L72
warning: manual implementation of `Option::map`
--> src/statement/statement_builder.rs:72:32
|
72 | let parameters_names = if let Some(converted_qs) = &querystring.converted_qs {
| ________________________________^
73 | | Some(converted_qs.params_names().clone())
74 | | } else {
75 | | None
76 | | };
| |_________^ help: try: `querystring.converted_qs.as_ref().map(|converted_qs| converted_qs.params_names().clone())`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_map
|
|
unneeded `return` statement:
src/statement/statement_builder.rs#L85
warning: unneeded `return` statement
--> src/statement/statement_builder.rs:85:9
|
85 | return Ok(statement);
| ^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
85 - return Ok(statement);
85 + Ok(statement)
|
|
|
manual implementation of `Option::map`:
src/statement/statement_builder.rs#L49
warning: manual implementation of `Option::map`
--> src/statement/statement_builder.rs:49:32
|
49 | let parameters_names = if let Some(converted_qs) = &cached.query.converted_qs {
| ________________________________^
50 | | Some(converted_qs.params_names().clone())
51 | | } else {
52 | | None
53 | | };
| |_________^ help: try: `cached.query.converted_qs.as_ref().map(|converted_qs| converted_qs.params_names().clone())`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_map
= note: `-W clippy::manual-map` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::manual_map)]`
|
|
unneeded `return` statement:
src/statement/statement_builder.rs#L57
warning: unneeded `return` statement
--> src/statement/statement_builder.rs:57:9
|
57 | return Ok(PsqlpyStatement::new(cached.query, prepared_parameters));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
57 - return Ok(PsqlpyStatement::new(cached.query, prepared_parameters));
57 + Ok(PsqlpyStatement::new(cached.query, prepared_parameters))
|
|
|
docs for function returning `Result` missing `# Errors` section:
src/statement/statement_builder.rs#L35
warning: docs for function returning `Result` missing `# Errors` section
--> src/statement/statement_builder.rs:35:5
|
35 | pub async fn build(self) -> PSQLPyResult<PsqlpyStatement> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
|
this method could have a `#[must_use]` attribute:
src/statement/statement_builder.rs#L21
warning: this method could have a `#[must_use]` attribute
--> src/statement/statement_builder.rs:21:5
|
21 | / pub fn new(
22 | | querystring: String,
23 | | parameters: Option<PyObject>,
24 | | inner_conn: &'a PsqlpyConnection,
25 | | prepared: Option<bool>,
26 | | ) -> Self {
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
help: add the attribute
|
21 ~ #[must_use] pub fn new(
22 + querystring: String,
23 + parameters: Option<PyObject>,
24 + inner_conn: &'a PsqlpyConnection,
25 + prepared: Option<bool>,
26 ~ ) -> Self {
|
|
|
this method could have a `#[must_use]` attribute:
src/statement/statement.rs#L27
warning: this method could have a `#[must_use]` attribute
--> src/statement/statement.rs:27:5
|
27 | pub fn params_typed(&self) -> Box<[(&(dyn ToSql + Sync), Type)]> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn params_typed(&self) -> Box<[(&(dyn ToSql + Sync), Type)]>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
|
this method could have a `#[must_use]` attribute:
src/statement/statement.rs#L23
warning: this method could have a `#[must_use]` attribute
--> src/statement/statement.rs:23:5
|
23 | pub fn params(&self) -> Box<[&(dyn ToSql + Sync)]> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn params(&self) -> Box<[&(dyn ToSql + Sync)]>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
|
this method could have a `#[must_use]` attribute:
src/statement/statement.rs#L19
warning: this method could have a `#[must_use]` attribute
--> src/statement/statement.rs:19:5
|
19 | pub fn sql_stmt(&self) -> &str {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn sql_stmt(&self) -> &str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
|
module has the same name as its containing module:
src/statement/mod.rs#L4
warning: module has the same name as its containing module
--> src/statement/mod.rs:4:1
|
4 | pub mod statement;
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception
= note: `-W clippy::module-inception` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::module_inception)]`
|
|
unneeded `return` statement:
src/statement/query.rs#L36
warning: unneeded `return` statement
--> src/statement/query.rs:36:9
|
36 | return &self.initial_qs;
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
36 - return &self.initial_qs;
36 + &self.initial_qs
|
|
|
writing `&String` instead of `&str` involves a new object where a slice will do:
src/statement/query.rs#L24
warning: writing `&String` instead of `&str` involves a new object where a slice will do
--> src/statement/query.rs:24:28
|
24 | pub fn new(initial_qs: &String) -> Self {
| ^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
= note: `-W clippy::ptr-arg` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::ptr_arg)]`
help: change this to
|
24 ~ pub fn new(initial_qs: &str) -> Self {
25 | return Self {
26 ~ initial_qs: initial_qs.to_owned(),
|
|
|
unneeded `return` statement:
src/statement/query.rs#L25
warning: unneeded `return` statement
--> src/statement/query.rs:25:9
|
25 | / return Self {
26 | | initial_qs: initial_qs.clone(),
27 | | converted_qs: None,
28 | | };
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
25 ~ Self {
26 + initial_qs: initial_qs.clone(),
27 + converted_qs: None,
28 ~ }
|
|
|
this method could have a `#[must_use]` attribute:
src/statement/query.rs#L24
warning: this method could have a `#[must_use]` attribute
--> src/statement/query.rs:24:5
|
24 | pub fn new(initial_qs: &String) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn new(initial_qs: &String) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
|
this method could have a `#[must_use]` attribute:
src/statement/parameters.rs#L248
warning: this method could have a `#[must_use]` attribute
--> src/statement/parameters.rs:248:5
|
248 | pub fn params_typed(&self) -> Box<[(&(dyn ToSql + Sync), Type)]> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn params_typed(&self) -> Box<[(&(dyn ToSql + Sync), Type)]>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
|
this method could have a `#[must_use]` attribute:
src/statement/parameters.rs#L239
warning: this method could have a `#[must_use]` attribute
--> src/statement/parameters.rs:239:5
|
239 | pub fn params(&self) -> Box<[&(dyn ToSql + Sync)]> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn params(&self) -> Box<[&(dyn ToSql + Sync)]>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
|
this method could have a `#[must_use]` attribute:
src/statement/parameters.rs#L235
warning: this method could have a `#[must_use]` attribute
--> src/statement/parameters.rs:235:5
|
235 | pub fn new(parameters: Vec<PythonDTO>, types: Vec<Type>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn new(parameters: Vec<PythonDTO>, types: Vec<Type>) -> Self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/statement/parameters.rs#L211
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/statement/parameters.rs:211:78
|
211 | .map(|(parameter, type_)| from_python_typed(parameter.bind(gil), &type_))
| ^^^^^^ help: change this to: `type_`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
|
variables can be used directly in the `format!` string:
src/statement/parameters.rs#L175
warning: variables can be used directly in the `format!` string
--> src/statement/parameters.rs:175:25
|
175 | format!("Cannot find parameter with name <{}>", param_name).into(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `-W clippy::uninlined-format-args` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]`
help: change this to
|
175 - format!("Cannot find parameter with name <{}>", param_name).into(),
175 + format!("Cannot find parameter with name <{param_name}>").into(),
|
|
|
useless conversion to the same type: `std::string::String`:
src/statement/parameters.rs#L175
warning: useless conversion to the same type: `std::string::String`
--> src/statement/parameters.rs:175:25
|
175 | format!("Cannot find parameter with name <{}>", param_name).into(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `format!("Cannot find parameter with name <{}>", param_name)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `-W clippy::useless-conversion` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::useless_conversion)]`
|
|
consider adding a `;` to the last statement for consistent formatting:
src/statement/parameters.rs#L63
warning: consider adding a `;` to the last statement for consistent formatting
--> src/statement/parameters.rs:63:21
|
63 | / prepared_parameters = Some(
64 | | MappingParametersBuilder::new(mapping, self.types)
65 | | .prepare(gil, parameters_names)?,
66 | | )
| |_____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
= note: `-W clippy::semicolon-if-nothing-returned` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::semicolon_if_nothing_returned)]`
help: add a `;` here
|
63 ~ prepared_parameters = Some(
64 + MappingParametersBuilder::new(mapping, self.types)
65 + .prepare(gil, parameters_names)?,
66 + );
|
|
|
unneeded `return` statement:
src/statement/parameters.rs#L76
warning: unneeded `return` statement
--> src/statement/parameters.rs:76:9
|
76 | / return Err(RustPSQLDriverError::PyToRustValueConversionError(
77 | | "Parameters must be sequence or mapping".into(),
78 | | ));
| |__________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
76 ~ Err(RustPSQLDriverError::PyToRustValueConversionError(
77 + "Parameters must be sequence or mapping".into(),
78 ~ ))
|
|
|
it is more idiomatic to use `Option<&T>` instead of `&Option<T>`:
src/statement/parameters.rs#L26
warning: it is more idiomatic to use `Option<&T>` instead of `&Option<T>`
--> src/statement/parameters.rs:26:5
|
26 | pub fn new(parameters: &Option<PyObject>, types: Option<Vec<Type>>) -> Self {
| ^ ----------------- help: change this to: `Option<&PyObject>`
| _____|
| |
27 | | Self {
28 | | parameters: parameters.clone(),
29 | | types,
30 | | }
31 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_option
= note: `-W clippy::ref-option` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::ref_option)]`
|
|
calling `StatementsCache::default()` is more clear than this expression:
src/statement/cache.rs#L50
warning: calling `StatementsCache::default()` is more clear than this expression
--> src/statement/cache.rs:50:30
|
50 | Lazy::new(|| RwLock::new(Default::default()));
| ^^^^^^^^^^^^^^^^^^ help: try: `StatementsCache::default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access
= note: `-W clippy::default-trait-access` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::default_trait_access)]`
|
|
unneeded `return` statement:
src/statement/cache.rs#L38
warning: unneeded `return` statement
--> src/statement/cache.rs:38:9
|
38 | / return Self {
39 | | query: query.clone(),
40 | | inner_stmt: inner_stmt.clone(),
41 | | };
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
38 ~ Self {
39 + query: query.clone(),
40 + inner_stmt: inner_stmt.clone(),
41 ~ }
|
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/statement/cache.rs#L20
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/statement/cache.rs:20:32
|
20 | let qs_hash = hash_str(&querystring);
| ^^^^^^^^^^^^ help: change this to: `querystring`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
404 | build_array_type!(IntervalArray, PythonDTO::PyIntervalArray, Type::INTERVAL);
| ---------------------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
403 | build_array_type!(CircleArray, PythonDTO::PyCircleArray, Type::CIRCLE);
| ---------------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
402 | build_array_type!(LsegArray, PythonDTO::PyLsegArray, Type::LSEG);
| ---------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
401 | build_array_type!(LineArray, PythonDTO::PyLineArray, Type::LINE);
| ---------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
400 | build_array_type!(PathArray, PythonDTO::PyPathArray, Type::PATH);
| ---------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
399 | build_array_type!(BoxArray, PythonDTO::PyBoxArray, Type::BOX);
| ------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
398 | build_array_type!(PointArray, PythonDTO::PyPointArray, Type::POINT);
| ------------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
397 | build_array_type!(NumericArray, PythonDTO::PyNumericArray, Type::NUMERIC);
| ------------------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
396 | build_array_type!(MacAddr8Array, PythonDTO::PyMacAddr8Array, Type::MACADDR8);
| ---------------------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
395 | build_array_type!(MacAddr6Array, PythonDTO::PyMacAddr6Array, Type::MACADDR);
| --------------------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
390 | / build_array_type!(
391 | | DateTimeTZArray,
392 | | PythonDTO::PyDateTimeTZArray,
393 | | Type::TIMESTAMPTZ
394 | | );
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
389 | build_array_type!(DateTimeArray, PythonDTO::PyDateTimeArray, Type::TIMESTAMP);
| ----------------------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
388 | build_array_type!(TimeArray, PythonDTO::PyTimeArray, Type::TIME);
| ---------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
387 | build_array_type!(DateArray, PythonDTO::PyDateArray, Type::DATE);
| ---------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
386 | build_array_type!(JSONArray, PythonDTO::PyJSONArray, Type::JSON);
| ---------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
385 | build_array_type!(JSONBArray, PythonDTO::PyJSONBArray, Type::JSONB);
| ------------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
384 | build_array_type!(IpAddressArray, PythonDTO::PyIpAddressArray, Type::INET);
| -------------------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
383 | build_array_type!(MoneyArray, PythonDTO::PyMoneyArray, Type::MONEY);
| ------------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
382 | build_array_type!(Float64Array, PythonDTO::PyFloat64Array, Type::FLOAT8);
| ------------------------------------------------------------------------ in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
381 | build_array_type!(Float32Array, PythonDTO::PyFloat32Array, Type::FLOAT4);
| ------------------------------------------------------------------------ in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
380 | build_array_type!(Int64Array, PythonDTO::PyInt64Array, Type::INT8);
| ------------------------------------------------------------------ in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
379 | build_array_type!(Int32Array, PythonDTO::PyInt32Array, Type::INT4);
| ------------------------------------------------------------------ in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
378 | build_array_type!(Int16Array, PythonDTO::PyInt16Array, Type::INT2);
| ------------------------------------------------------------------ in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
377 | build_array_type!(TextArray, PythonDTO::PyTextArray, Type::TEXT);
| ---------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
376 | build_array_type!(VarCharArray, PythonDTO::PyVarCharArray, Type::VARCHAR);
| ------------------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
375 | build_array_type!(UUIDArray, PythonDTO::PyUuidArray, Type::UUID);
| ---------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this method could have a `#[must_use]` attribute:
src/extra_types.rs#L350
warning: this method could have a `#[must_use]` attribute
--> src/extra_types.rs:350:13
|
350 | pub fn element_type() -> Type {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add the attribute: `#[must_use] pub fn element_type() -> Type`
...
374 | build_array_type!(BoolArray, PythonDTO::PyBoolArray, Type::BOOL);
| ---------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
= note: `-W clippy::must-use-candidate` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::must_use_candidate)]`
= note: this warning originates in the macro `build_array_type` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
this lifetime isn't used in the function definition:
src/driver/transaction.rs#L755
warning: this lifetime isn't used in the function definition
--> src/driver/transaction.rs:755:27
|
755 | pub async fn pipeline<'py>(
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
|
|
this lifetime isn't used in the function definition:
src/driver/transaction.rs#L300
warning: this lifetime isn't used in the function definition
--> src/driver/transaction.rs:300:24
|
300 | async fn __aexit__<'a>(
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
|
|
this lifetime isn't used in the function definition:
src/driver/transaction.rs#L245
warning: this lifetime isn't used in the function definition
--> src/driver/transaction.rs:245:25
|
245 | async fn __aenter__<'a>(self_: Py<Self>) -> PSQLPyResult<Py<Self>> {
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
|
|
unneeded `return` statement:
src/driver/transaction.rs#L233
warning: unneeded `return` statement
--> src/driver/transaction.rs:233:9
|
233 | return self.pg_config.get_ports().iter().collect::<Vec<&u16>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
233 - return self.pg_config.get_ports().iter().collect::<Vec<&u16>>();
233 + self.pg_config.get_ports().iter().collect::<Vec<&u16>>()
|
|
|
unnecessary semicolon:
src/driver/transaction.rs#L50
warning: unnecessary semicolon
--> src/driver/transaction.rs:50:10
|
50 | };
| ^ help: remove
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon
|
|
unnecessary semicolon:
src/driver/listener/structs.rs#L25
warning: unnecessary semicolon
--> src/driver/listener/structs.rs:25:10
|
25 | };
| ^ help: remove
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon
|
|
this lifetime isn't used in the function definition:
src/driver/listener/core.rs#L97
warning: this lifetime isn't used in the function definition
--> src/driver/listener/core.rs:97:24
|
97 | async fn __aexit__<'a>(
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
|
|
this lifetime isn't used in the function definition:
src/driver/listener/core.rs#L92
warning: this lifetime isn't used in the function definition
--> src/driver/listener/core.rs:92:25
|
92 | async fn __aenter__<'a>(slf: Py<Self>) -> PSQLPyResult<Py<Self>> {
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
|
|
this argument is passed by value, but not consumed in the function body:
src/driver/listener/core.rs#L45
warning: this argument is passed by value, but not consumed in the function body
--> src/driver/listener/core.rs:45:27
|
45 | pub fn new(pg_config: Arc<Config>, ca_file: Option<String>, ssl_mode: Option<SslMode>) -> Self {
| ^^^^^^^^^^^ help: consider taking a reference instead: `&Arc<Config>`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
= note: `-W clippy::needless-pass-by-value` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::needless_pass_by_value)]`
|
|
unneeded `return` statement:
src/driver/inner_connection.rs#L279
warning: unneeded `return` statement
--> src/driver/inner_connection.rs:279:9
|
279 | / return Python::with_gil(|gil| match result.columns().first() {
280 | | Some(first_column) => postgres_to_py(gil, &result, first_column, 0, &None),
281 | | None => Ok(gil.None()),
282 | | });
| |__________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
279 ~ Python::with_gil(|gil| match result.columns().first() {
280 + Some(first_column) => postgres_to_py(gil, &result, first_column, 0, &None),
281 + None => Ok(gil.None()),
282 ~ })
|
|
|
docs for function returning `Result` missing `# Errors` section:
src/driver/inner_connection.rs#L269
warning: docs for function returning `Result` missing `# Errors` section
--> src/driver/inner_connection.rs:269:5
|
269 | / pub async fn fetch_val(
270 | | &self,
271 | | querystring: String,
272 | | parameters: Option<pyo3::Py<PyAny>>,
273 | | prepared: Option<bool>,
274 | | ) -> PSQLPyResult<Py<PyAny>> {
| |________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
|
unneeded `return` statement:
src/driver/inner_connection.rs#L266
warning: unneeded `return` statement
--> src/driver/inner_connection.rs:266:9
|
266 | return Ok(PSQLDriverSinglePyQueryResult::new(result));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
266 - return Ok(PSQLDriverSinglePyQueryResult::new(result));
266 + Ok(PSQLDriverSinglePyQueryResult::new(result))
|
|
|
docs for function returning `Result` missing `# Errors` section:
src/driver/inner_connection.rs#L256
warning: docs for function returning `Result` missing `# Errors` section
--> src/driver/inner_connection.rs:256:5
|
256 | / pub async fn fetch_row(
257 | | &self,
258 | | querystring: String,
259 | | parameters: Option<pyo3::Py<PyAny>>,
260 | | prepared: Option<bool>,
261 | | ) -> PSQLPyResult<PSQLDriverSinglePyQueryResult> {
| |____________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/driver/inner_connection.rs#L238
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/driver/inner_connection.rs:238:31
|
238 | &self.prepare(&statement.sql_stmt()).await.map_err(|err| {
| ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `statement.sql_stmt()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
|
unneeded `return` statement:
src/driver/inner_connection.rs#L253
warning: unneeded `return` statement
--> src/driver/inner_connection.rs:253:9
|
253 | return Ok(result);
| ^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
253 - return Ok(result);
253 + Ok(result)
|
|
|
docs for function returning `Result` missing `# Errors` section:
src/driver/inner_connection.rs#L224
warning: docs for function returning `Result` missing `# Errors` section
--> src/driver/inner_connection.rs:224:5
|
224 | / pub async fn fetch_row_raw(
225 | | &self,
226 | | querystring: String,
227 | | parameters: Option<pyo3::Py<PyAny>>,
228 | | prepared: Option<bool>,
229 | | ) -> PSQLPyResult<Row> {
| |__________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/driver/inner_connection.rs#L206
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/driver/inner_connection.rs:206:35
|
206 | &self.prepare(&statement.sql_stmt()).await?,
| ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `statement.sql_stmt()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/driver/inner_connection.rs#L199
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/driver/inner_connection.rs:199:51
|
199 | let prepared_stmt = &self.prepare(&statement.sql_stmt()).await;
| ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `statement.sql_stmt()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
|
unneeded `return` statement:
src/driver/inner_connection.rs#L221
warning: unneeded `return` statement
--> src/driver/inner_connection.rs:221:9
|
221 | return Ok(());
| ^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
221 - return Ok(());
221 + Ok(())
|
|
|
docs for function returning `Result` missing `# Errors` section:
src/driver/inner_connection.rs#L176
warning: docs for function returning `Result` missing `# Errors` section
--> src/driver/inner_connection.rs:176:5
|
176 | / pub async fn execute_many(
177 | | &self,
178 | | querystring: String,
179 | | parameters: Option<Vec<Py<PyAny>>>,
180 | | prepared: Option<bool>,
181 | | ) -> PSQLPyResult<()> {
| |_________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
|
docs for function returning `Result` missing `# Errors` section:
src/driver/inner_connection.rs#L144
warning: docs for function returning `Result` missing `# Errors` section
--> src/driver/inner_connection.rs:144:5
|
144 | / pub async fn execute(
145 | | &self,
146 | | querystring: String,
147 | | parameters: Option<pyo3::Py<PyAny>>,
148 | | prepared: Option<bool>,
149 | | ) -> PSQLPyResult<PSQLDriverPyQueryResult> {
| |______________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/driver/inner_connection.rs#L126
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/driver/inner_connection.rs:126:31
|
126 | &self.prepare(&statement.sql_stmt()).await.map_err(|err| {
| ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `statement.sql_stmt()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-W clippy::needless-borrow` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::needless_borrow)]`
|
|
docs for function returning `Result` missing `# Errors` section:
src/driver/inner_connection.rs#L112
warning: docs for function returning `Result` missing `# Errors` section
--> src/driver/inner_connection.rs:112:5
|
112 | / pub async fn cursor_execute(
113 | | &self,
114 | | querystring: String,
115 | | parameters: Option<pyo3::Py<PyAny>>,
116 | | prepared: Option<bool>,
117 | | ) -> PSQLPyResult<PSQLDriverPyQueryResult> {
| |______________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
= note: `-W clippy::missing-errors-doc` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::missing_errors_doc)]`
|
|
unneeded late initialization:
src/driver/inner_connection.rs#L50
warning: unneeded late initialization
--> src/driver/inner_connection.rs:50:9
|
50 | let types: Vec<Type>;
| ^^^^^^^^^^^^^^^^^^^^^ created here
...
53 | types = stmt.params().to_vec();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ initialised here
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init
= note: `-W clippy::needless-late-init` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::needless_late_init)]`
help: move the declaration `types` here
|
50 ~
51 |
52 | let stmt = self.prepare(query).await?;
53 ~ let types: Vec<Type> = stmt.params().to_vec();
|
|
|
this lifetime isn't used in the function definition:
src/driver/cursor.rs#L681
warning: this lifetime isn't used in the function definition
--> src/driver/cursor.rs:681:37
|
681 | pub async fn fetch_backward_all<'a>(slf: Py<Self>) -> PSQLPyResult<PSQLDriverPyQueryResult> {
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
|
|
this lifetime isn't used in the function definition:
src/driver/cursor.rs#L647
warning: this lifetime isn't used in the function definition
--> src/driver/cursor.rs:647:33
|
647 | pub async fn fetch_backward<'a>(
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
|
|
this lifetime isn't used in the function definition:
src/driver/cursor.rs#L616
warning: this lifetime isn't used in the function definition
--> src/driver/cursor.rs:616:36
|
616 | pub async fn fetch_forward_all<'a>(slf: Py<Self>) -> PSQLPyResult<PSQLDriverPyQueryResult> {
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
|
|
this lifetime isn't used in the function definition:
src/driver/cursor.rs#L582
warning: this lifetime isn't used in the function definition
--> src/driver/cursor.rs:582:33
|
582 | pub async fn fetch_relative<'a>(
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
|
|
this lifetime isn't used in the function definition:
src/driver/cursor.rs#L548
warning: this lifetime isn't used in the function definition
--> src/driver/cursor.rs:548:33
|
548 | pub async fn fetch_absolute<'a>(
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
|
|
this lifetime isn't used in the function definition:
src/driver/cursor.rs#L521
warning: this lifetime isn't used in the function definition
--> src/driver/cursor.rs:521:29
|
521 | pub async fn fetch_last<'a>(slf: Py<Self>) -> PSQLPyResult<PSQLDriverPyQueryResult> {
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
|
|
this lifetime isn't used in the function definition:
src/driver/cursor.rs#L494
warning: this lifetime isn't used in the function definition
--> src/driver/cursor.rs:494:30
|
494 | pub async fn fetch_first<'a>(slf: Py<Self>) -> PSQLPyResult<PSQLDriverPyQueryResult> {
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
|
|
this lifetime isn't used in the function definition:
src/driver/cursor.rs#L467
warning: this lifetime isn't used in the function definition
--> src/driver/cursor.rs:467:30
|
467 | pub async fn fetch_prior<'a>(slf: Py<Self>) -> PSQLPyResult<PSQLDriverPyQueryResult> {
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
|
|
this lifetime isn't used in the function definition:
src/driver/cursor.rs#L440
warning: this lifetime isn't used in the function definition
--> src/driver/cursor.rs:440:29
|
440 | pub async fn fetch_next<'a>(slf: Py<Self>) -> PSQLPyResult<PSQLDriverPyQueryResult> {
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
|
|
this lifetime isn't used in the function definition:
src/driver/cursor.rs#L396
warning: this lifetime isn't used in the function definition
--> src/driver/cursor.rs:396:24
|
396 | pub async fn fetch<'a>(
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
|
|
unnecessary semicolon:
src/driver/cursor.rs#L330
warning: unnecessary semicolon
--> src/driver/cursor.rs:330:22
|
330 | };
| ^ help: remove
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon
|
|
this lifetime isn't used in the function definition:
src/driver/cursor.rs#L263
warning: this lifetime isn't used in the function definition
--> src/driver/cursor.rs:263:24
|
263 | async fn __aexit__<'a>(
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
|
|
this lifetime isn't used in the function definition:
src/driver/cursor.rs#L235
warning: this lifetime isn't used in the function definition
--> src/driver/cursor.rs:235:25
|
235 | async fn __aenter__<'a>(slf: Py<Self>) -> PSQLPyResult<Py<Self>> {
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
|
|
using `clone` on type `Option<bool>` which implements the `Copy` trait:
src/driver/cursor.rs#L223
warning: using `clone` on type `Option<bool>` which implements the `Copy` trait
--> src/driver/cursor.rs:223:16
|
223 | return self.prepared.clone();
| ^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.prepared`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
= note: `-W clippy::clone-on-copy` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::clone_on_copy)]`
|
|
unneeded `return` statement:
src/driver/cursor.rs#L223
warning: unneeded `return` statement
--> src/driver/cursor.rs:223:9
|
223 | return self.prepared.clone();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
223 - return self.prepared.clone();
223 + self.prepared.clone()
|
|
|
unneeded `return` statement:
src/driver/cursor.rs#L218
warning: unneeded `return` statement
--> src/driver/cursor.rs:218:9
|
218 | return self.parameters.clone();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
218 - return self.parameters.clone();
218 + self.parameters.clone()
|
|
|
unneeded `return` statement:
src/driver/cursor.rs#L213
warning: unneeded `return` statement
--> src/driver/cursor.rs:213:9
|
213 | return self.querystring.clone();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
213 - return self.querystring.clone();
213 + self.querystring.clone()
|
|
|
unneeded `return` statement:
src/driver/cursor.rs#L208
warning: unneeded `return` statement
--> src/driver/cursor.rs:208:9
|
208 | return self.cursor_name.clone();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
208 - return self.cursor_name.clone();
208 + self.cursor_name.clone()
|
|
|
unneeded `return` statement:
src/driver/cursor.rs#L203
warning: unneeded `return` statement
--> src/driver/cursor.rs:203:9
|
203 | return self.pg_config.get_ports().iter().collect::<Vec<&u16>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
203 - return self.pg_config.get_ports().iter().collect::<Vec<&u16>>();
203 + self.pg_config.get_ports().iter().collect::<Vec<&u16>>()
|
|
|
this function has too many arguments (8/7):
src/driver/cursor.rs#L107
warning: this function has too many arguments (8/7)
--> src/driver/cursor.rs:107:5
|
107 | / pub fn new(
108 | | db_transaction: Arc<PsqlpyConnection>,
109 | | pg_config: Arc<Config>,
110 | | querystring: String,
... |
115 | | prepared: Option<bool>,
116 | | ) -> Self {
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: `-W clippy::too-many-arguments` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::too_many_arguments)]`
|
|
unnecessary semicolon:
src/driver/connection_pool_builder.rs#L51
warning: unnecessary semicolon
--> src/driver/connection_pool_builder.rs:51:10
|
51 | };
| ^ help: remove
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon
= note: `-W clippy::unnecessary-semicolon` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::unnecessary_semicolon)]`
|
|
this lifetime isn't used in the function definition:
src/driver/connection.rs#L334
warning: this lifetime isn't used in the function definition
--> src/driver/connection.rs:334:28
|
334 | pub async fn fetch_val<'a>(
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
|
|
this lifetime isn't used in the function definition:
src/driver/connection.rs#L251
warning: this lifetime isn't used in the function definition
--> src/driver/connection.rs:251:31
|
251 | pub async fn execute_many<'a>(
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
|
|
this lifetime isn't used in the function definition:
src/driver/connection.rs#L167
warning: this lifetime isn't used in the function definition
--> src/driver/connection.rs:167:24
|
167 | async fn __aexit__<'a>(
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
|
|
unneeded `return` statement:
src/driver/connection.rs#L137
warning: unneeded `return` statement
--> src/driver/connection.rs:137:9
|
137 | return self.pg_config.get_options();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
137 - return self.pg_config.get_options();
137 + self.pg_config.get_options()
|
|
|
unneeded `return` statement:
src/driver/connection.rs#L132
warning: unneeded `return` statement
--> src/driver/connection.rs:132:9
|
132 | return self.pg_config.get_ports().iter().collect::<Vec<&u16>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
= note: `-W clippy::needless-return` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::needless_return)]`
help: remove `return`
|
132 - return self.pg_config.get_ports().iter().collect::<Vec<&u16>>();
132 + self.pg_config.get_ports().iter().collect::<Vec<&u16>>()
|
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L572
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:572:23
|
572 | Ok(result_py_dict.to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L566
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:566:26
|
566 | .to_object(py),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L557
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:557:75
|
557 | postgres_bytes_to_py(py, &Type::VARCHAR, buf, false)?.to_object(py),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L551
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:551:74
|
551 | postgres_bytes_to_py(py, field.type_(), buf, false)?.to_object(py),
| ^^^^^^^^^
|
|
use of deprecated associated function `pyo3::types::PyDict::new_bound`: renamed to `PyDict::new`:
src/value_converter/to_python.rs#L519
warning: use of deprecated associated function `pyo3::types::PyDict::new_bound`: renamed to `PyDict::new`
--> src/value_converter/to_python.rs:519:53
|
519 | let result_py_dict: Bound<'_, PyDict> = PyDict::new_bound(py);
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L497
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:497:48
|
497 | return Ok(real_vector.to_vec().to_object(py));
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L477
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:477:58
|
477 | Ok(postgres_array_to_py(py, interval_array_).to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L470
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:470:56
|
470 | Ok(postgres_array_to_py(py, circle_array_).to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L464
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:464:54
|
464 | Ok(postgres_array_to_py(py, lseg_array_).to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L457
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:457:54
|
457 | Ok(postgres_array_to_py(py, line_array_).to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L451
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:451:54
|
451 | Ok(postgres_array_to_py(py, path_array_).to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L444
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:444:53
|
444 | Ok(postgres_array_to_py(py, box_array_).to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L438
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:438:55
|
438 | Ok(postgres_array_to_py(py, point_array_).to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L432
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:432:10
|
432 | .to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L426
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:426:56
|
426 | Ok(postgres_array_to_py(py, db_json_array).to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L421
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:421:10
|
421 | .to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L414
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:414:53
|
414 | Ok(postgres_array_to_py(py, uuid_array).to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L408
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:408:10
|
408 | .to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L400
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:400:10
|
400 | .to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L394
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:394:10
|
394 | .to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L388
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:388:10
|
388 | .to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L382
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:382:10
|
382 | .to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L376
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:376:10
|
376 | .to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L370
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:370:10
|
370 | .to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L364
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:364:10
|
364 | .to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L358
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:358:10
|
358 | .to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L351
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:351:10
|
351 | .to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L345
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:345:10
|
345 | .to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L336
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:336:51
|
336 | return Ok(InnerInterval(interval).to_object(py));
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L329
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:329:38
|
329 | None => Ok(py.None().to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L328
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:328:45
|
328 | Some(circle_) => Ok(circle_.into_py(py)),
| ^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L321
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:321:38
|
321 | None => Ok(py.None().to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L320
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:320:41
|
320 | Some(lseg_) => Ok(lseg_.into_py(py)),
| ^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L312
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:312:38
|
312 | None => Ok(py.None().to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L311
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:311:41
|
311 | Some(line_) => Ok(line_.into_py(py)),
| ^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L304
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:304:38
|
304 | None => Ok(py.None().to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L303
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:303:41
|
303 | Some(path_) => Ok(path_.into_py(py)),
| ^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L295
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:295:38
|
295 | None => Ok(py.None().to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L294
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:294:39
|
294 | Some(box_) => Ok(box_.into_py(py)),
| ^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L287
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:287:38
|
287 | None => Ok(py.None().to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L286
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:286:43
|
286 | Some(point_) => Ok(point_.into_py(py)),
| ^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L278
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:278:26
|
278 | Ok(py.None().to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L276
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:276:50
|
276 | return Ok(InnerDecimal(numeric_).to_object(py));
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L269
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:269:30
|
269 | Ok(py.None().to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L267
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:267:49
|
267 | Ok(macaddr_.inner().to_string().to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L260
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:260:30
|
260 | Ok(py.None().to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L258
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:258:49
|
258 | Ok(macaddr_.inner().to_string().to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L250
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:250:38
|
250 | None => Ok(py.None().to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L242
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:242:86
|
242 | composite_field_postgres_to_py::<Option<IpAddr>>(type_, buf, is_simple)?.to_object(py),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L235
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:235:79
|
235 | return Ok(PyString::new_bound(py, &rust_uuid.to_string()).to_object(py))
| ^^^^^^^^^
|
|
use of deprecated associated function `pyo3::types::PyString::new_bound`: renamed to `PyString::new`:
src/value_converter/to_python.rs#L235
warning: use of deprecated associated function `pyo3::types::PyString::new_bound`: renamed to `PyString::new`
--> src/value_converter/to_python.rs:235:41
|
235 | return Ok(PyString::new_bound(py, &rust_uuid.to_string()).to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L227
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:227:18
|
227 | .to_object(py),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L223
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:223:10
|
223 | .to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L218
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:218:10
|
218 | .to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L213
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:213:10
|
213 | .to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L206
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:206:86
|
206 | Ok(composite_field_postgres_to_py::<Option<f64>>(type_, buf, is_simple)?.to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L202
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:202:86
|
202 | Ok(composite_field_postgres_to_py::<Option<f32>>(type_, buf, is_simple)?.to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L198
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:198:86
|
198 | Ok(composite_field_postgres_to_py::<Option<i64>>(type_, buf, is_simple)?.to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L194
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:194:86
|
194 | Ok(composite_field_postgres_to_py::<Option<i32>>(type_, buf, is_simple)?.to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L190
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:190:86
|
190 | Ok(composite_field_postgres_to_py::<Option<i16>>(type_, buf, is_simple)?.to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L185
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:185:84
|
185 | composite_field_postgres_to_py::<Option<bool>>(type_, buf, is_simple)?.to_object(py),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L181
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:181:10
|
181 | .to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L172
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:172:65
|
172 | return Ok(PyBytes::new_bound(py, &vec_of_bytes).to_object(py));
| ^^^^^^^^^
|
|
use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new`:
src/value_converter/to_python.rs#L172
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new`
--> src/value_converter/to_python.rs:172:36
|
172 | return Ok(PyBytes::new_bound(py, &vec_of_bytes).to_object(py));
| ^^^^^^^^^
|
|
use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty`:
src/value_converter/to_python.rs#L155
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty`
--> src/value_converter/to_python.rs:155:13
|
155 | PyList::empty_bound(py).unbind()
| ^^^^^^^^^^^
|
|
use of deprecated associated function `pyo3::types::PyList::new_bound`: renamed to `PyList::new`:
src/value_converter/to_python.rs#L150
warning: use of deprecated associated function `pyo3::types::PyList::new_bound`: renamed to `PyList::new`
--> src/value_converter/to_python.rs:150:32
|
150 | return PyList::new_bound(py, data).unbind();
| ^^^^^^^^^
|
|
use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty`:
src/value_converter/to_python.rs#L131
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty`
--> src/value_converter/to_python.rs:131:42
|
131 | let final_list = PyList::empty_bound(py);
| ^^^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L71
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:71:44
|
71 | Value::String(string) => Ok(string.to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L68
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:68:36
|
68 | Ok(number.as_u64().to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L66
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:66:36
|
66 | Ok(number.as_i64().to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L64
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:64:36
|
64 | Ok(number.as_f64().to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L61
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:61:44
|
61 | Value::Bool(boolean) => Ok(boolean.to_object(py)),
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L59
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:59:24
|
59 | Ok(py_dict.to_object(py))
| ^^^^^^^^^
|
|
use of deprecated associated function `pyo3::types::PyDict::new_bound`: renamed to `PyDict::new`:
src/value_converter/to_python.rs#L50
warning: use of deprecated associated function `pyo3::types::PyDict::new_bound`: renamed to `PyDict::new`
--> src/value_converter/to_python.rs:50:35
|
50 | let py_dict = PyDict::new_bound(py);
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L47
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:47:27
|
47 | Ok(result_vec.to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/models/uuid.rs#L31
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/models/uuid.rs:31:37
|
31 | self.0.to_string().as_str().to_object(py)
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/models/interval.rs#L22
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/models/interval.rs:22:13
|
22 | ret.to_object(py)
| ^^^^^^^^^
|
|
use of deprecated associated function `pyo3::types::PyDict::new_bound`: renamed to `PyDict::new`:
src/value_converter/models/interval.rs#L15
warning: use of deprecated associated function `pyo3::types::PyDict::new_bound`: renamed to `PyDict::new`
--> src/value_converter/models/interval.rs:15:30
|
15 | let pydict = PyDict::new_bound(py);
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/models/decimal.rs#L15
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/models/decimal.rs:15:13
|
15 | ret.to_object(py)
| ^^^^^^^^^
|
|
use of deprecated associated function `pyo3::types::PyTuple::new_bound`: renamed to `PyTuple::new`:
src/value_converter/additional_types.rs#L578
warning: use of deprecated associated function `pyo3::types::PyTuple::new_bound`: renamed to `PyTuple::new`
--> src/value_converter/additional_types.rs:578:18
|
578 | PyTuple::new_bound(py, result_vec).into()
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L575
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:575:27
|
575 | self.radius().into_py(py),
| ^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L574
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:574:72
|
574 | PyTuple::new_bound(py, vec![center.x.into_py(py), center.y.into_py(py)]).into(),
| ^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L574
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:574:50
|
574 | PyTuple::new_bound(py, vec![center.x.into_py(py), center.y.into_py(py)]).into(),
| ^^^^^^^
|
|
use of deprecated associated function `pyo3::types::PyTuple::new_bound`: renamed to `PyTuple::new`:
src/value_converter/additional_types.rs#L574
warning: use of deprecated associated function `pyo3::types::PyTuple::new_bound`: renamed to `PyTuple::new`
--> src/value_converter/additional_types.rs:574:22
|
574 | PyTuple::new_bound(py, vec![center.x.into_py(py), center.y.into_py(py)]).into(),
| ^^^^^^^^^
|
|
use of deprecated associated function `pyo3::types::PyTuple::new_bound`: renamed to `PyTuple::new`:
src/value_converter/additional_types.rs#L459
warning: use of deprecated associated function `pyo3::types::PyTuple::new_bound`: renamed to `PyTuple::new`
--> src/value_converter/additional_types.rs:459:18
|
459 | PyTuple::new_bound(py, result_vec).into()
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L456
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:456:22
|
456 | self.c().into_py(py),
| ^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L455
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:455:22
|
455 | self.b().into_py(py),
| ^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L454
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:454:22
|
454 | self.a().into_py(py),
| ^^^^^^^
|
|
use of deprecated associated function `pyo3::types::PyList::new_bound`: renamed to `PyList::new`:
src/value_converter/additional_types.rs#L277
warning: use of deprecated associated function `pyo3::types::PyList::new_bound`: renamed to `PyList::new`
--> src/value_converter/additional_types.rs:277:17
|
277 | PyList::new_bound(py, result_vec).into()
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L272
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:272:84
|
272 | PyTuple::new_bound(py, vec![coordinate.x.into_py(py), coordinate.y.into_py(py)])
| ^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L272
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:272:58
|
272 | PyTuple::new_bound(py, vec![coordinate.x.into_py(py), coordinate.y.into_py(py)])
| ^^^^^^^
|
|
use of deprecated associated function `pyo3::types::PyTuple::new_bound`: renamed to `PyTuple::new`:
src/value_converter/additional_types.rs#L272
warning: use of deprecated associated function `pyo3::types::PyTuple::new_bound`: renamed to `PyTuple::new`
--> src/value_converter/additional_types.rs:272:26
|
272 | PyTuple::new_bound(py, vec![coordinate.x.into_py(py), coordinate.y.into_py(py)])
| ^^^^^^^^^
|
|
use of deprecated associated function `pyo3::types::PyList::new_bound`: renamed to `PyList::new`:
src/value_converter/additional_types.rs#L229
warning: use of deprecated associated function `pyo3::types::PyList::new_bound`: renamed to `PyList::new`
--> src/value_converter/additional_types.rs:229:17
|
229 | PyList::new_bound(py, result_vec).into()
| ^^^^^^^^^
|
|
use of deprecated associated function `pyo3::types::PyTuple::new_bound`: renamed to `PyTuple::new`:
src/value_converter/additional_types.rs#L227
warning: use of deprecated associated function `pyo3::types::PyTuple::new_bound`: renamed to `PyTuple::new`
--> src/value_converter/additional_types.rs:227:29
|
227 | return PyTuple::new_bound(py, result_vec).into();
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L221
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:221:84
|
221 | PyTuple::new_bound(py, vec![coordinate.x.into_py(py), coordinate.y.into_py(py)])
| ^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L221
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:221:58
|
221 | PyTuple::new_bound(py, vec![coordinate.x.into_py(py), coordinate.y.into_py(py)])
| ^^^^^^^
|
|
use of deprecated associated function `pyo3::types::PyTuple::new_bound`: renamed to `PyTuple::new`:
src/value_converter/additional_types.rs#L221
warning: use of deprecated associated function `pyo3::types::PyTuple::new_bound`: renamed to `PyTuple::new`
--> src/value_converter/additional_types.rs:221:26
|
221 | PyTuple::new_bound(py, vec![coordinate.x.into_py(py), coordinate.y.into_py(py)])
| ^^^^^^^^^
|
|
use of deprecated associated function `pyo3::types::PyTuple::new_bound`: renamed to `PyTuple::new`:
src/value_converter/additional_types.rs#L178
warning: use of deprecated associated function `pyo3::types::PyTuple::new_bound`: renamed to `PyTuple::new`
--> src/value_converter/additional_types.rs:178:18
|
178 | PyTuple::new_bound(py, result_vec).into()
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L173
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:173:73
|
173 | vec![one_coordinate.x.into_py(py), one_coordinate.y.into_py(py)],
| ^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L173
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:173:43
|
173 | vec![one_coordinate.x.into_py(py), one_coordinate.y.into_py(py)],
| ^^^^^^^
|
|
use of deprecated associated function `pyo3::types::PyTuple::new_bound`: renamed to `PyTuple::new`:
src/value_converter/additional_types.rs#L171
warning: use of deprecated associated function `pyo3::types::PyTuple::new_bound`: renamed to `PyTuple::new`
--> src/value_converter/additional_types.rs:171:26
|
171 | PyTuple::new_bound(
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L125
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:125:63
|
125 | vec![inner_value.x().into_py(py), inner_value.y().into_py(py)],
| ^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L125
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:125:34
|
125 | vec![inner_value.x().into_py(py), inner_value.y().into_py(py)],
| ^^^^^^^
|
|
use of deprecated associated function `pyo3::types::PyTuple::new_bound`: renamed to `PyTuple::new`:
src/value_converter/additional_types.rs#L123
warning: use of deprecated associated function `pyo3::types::PyTuple::new_bound`: renamed to `PyTuple::new`
--> src/value_converter/additional_types.rs:123:18
|
123 | PyTuple::new_bound(
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L115
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:115:14
|
115 | self.into_py(py)
| ^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L109
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:109:14
|
109 | self.into_py(py)
| ^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L103
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:103:14
|
103 | self.into_py(py)
| ^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L97
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:97:14
|
97 | self.into_py(py)
| ^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L91
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:91:14
|
91 | self.into_py(py)
| ^^^^^^^
|
|
use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L85
warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:85:14
|
85 | self.into_py(py)
| ^^^^^^^
|
|
use of deprecated method `pyo3::Py::<T>::call_bound`: renamed to `Py::call`:
src/row_factories.rs#L38
warning: use of deprecated method `pyo3::Py::<T>::call_bound`: renamed to `Py::call`
--> src/row_factories.rs:38:19
|
38 | Ok(self.0.call_bound(py, (), Some(dict_))?)
| ^^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/row_factories.rs#L17
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/row_factories.rs:17:46
|
17 | Ok(PyTuple::new_bound(py, dict_.items()).to_object(py))
| ^^^^^^^^^
|
|
use of deprecated associated function `pyo3::types::PyTuple::new_bound`: renamed to `PyTuple::new`:
src/row_factories.rs#L17
warning: use of deprecated associated function `pyo3::types::PyTuple::new_bound`: renamed to `PyTuple::new`
--> src/row_factories.rs:17:17
|
17 | Ok(PyTuple::new_bound(py, dict_.items()).to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/query_result.rs#L182
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/query_result.rs:182:70
|
182 | let pydict = row_to_dict(py, &self.inner, &custom_decoders)?.to_object(py);
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/query_result.rs#L152
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/query_result.rs:152:60
|
152 | Ok(row_to_dict(py, &self.inner, &custom_decoders)?.to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/query_result.rs#L111
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/query_result.rs:111:16
|
111 | Ok(res.to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/query_result.rs#L88
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/query_result.rs:88:16
|
88 | Ok(res.to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/query_result.rs#L70
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/query_result.rs:70:19
|
70 | Ok(result.to_object(py))
| ^^^^^^^^^
|
|
use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/query_result.rs#L22
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/query_result.rs:22:44
|
22 | python_dict.set_item(column.name().to_object(py), python_type)?;
| ^^^^^^^^^
|
|
use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L123
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:123:8
|
123 | T: ToPyObject,
| ^^^^^^^^^^
|
|
use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L98
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:98:28
|
98 | fn postgres_array_to_py<T: ToPyObject>(
| ^^^^^^^^^^
|
|
use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L16
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:16:39
|
16 | Bound, IntoPy, Py, PyAny, Python, ToPyObject,
| ^^^^^^^^^^
|
|
use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/to_python.rs#L16
warning: use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/to_python.rs:16:12
|
16 | Bound, IntoPy, Py, PyAny, Python, ToPyObject,
| ^^^^^^
|
|
use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/models/uuid.rs#L29
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/models/uuid.rs:29:6
|
29 | impl ToPyObject for InternalUuid {
| ^^^^^^^^^^
|
|
use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/models/uuid.rs#L5
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/models/uuid.rs:5:82
|
5 | types::PyAnyMethods, Bound, FromPyObject, PyAny, PyObject, PyResult, Python, ToPyObject,
| ^^^^^^^^^^
|
|
use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/models/serde_value.rs#L34
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/models/serde_value.rs:34:6
|
34 | impl ToPyObject for InternalSerdeValue {
| ^^^^^^^^^^
|
|
use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/models/serde_value.rs#L7
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/models/serde_value.rs:7:65
|
7 | Bound, FromPyObject, Py, PyAny, PyObject, PyResult, Python, ToPyObject,
| ^^^^^^^^^^
|
|
use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/models/interval.rs#L12
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/models/interval.rs:12:6
|
12 | impl ToPyObject for InnerInterval {
| ^^^^^^^^^^
|
|
use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/models/interval.rs#L5
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/models/interval.rs:5:23
|
5 | PyObject, Python, ToPyObject,
| ^^^^^^^^^^
|
|
use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/models/decimal.rs#L9
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/models/decimal.rs:9:6
|
9 | impl ToPyObject for InnerDecimal {
| ^^^^^^^^^^
|
|
use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/models/decimal.rs#L2
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/models/decimal.rs:2:51
|
2 | use pyo3::{types::PyAnyMethods, PyObject, Python, ToPyObject};
| ^^^^^^^^^^
|
|
use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L568
warning: use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:568:6
|
568 | impl IntoPy<PyObject> for &Circle {
| ^^^^^^
|
|
use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L450
warning: use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:450:6
|
450 | impl IntoPy<PyObject> for &Line {
| ^^^^^^
|
|
use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L264
warning: use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:264:6
|
264 | impl IntoPy<PyObject> for &RustLineSegment {
| ^^^^^^
|
|
use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L213
warning: use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:213:6
|
213 | impl IntoPy<PyObject> for &RustLineString {
| ^^^^^^
|
|
use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L162
warning: use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:162:6
|
162 | impl IntoPy<PyObject> for &RustRect {
| ^^^^^^
|
|
use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L119
warning: use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:119:6
|
119 | impl IntoPy<PyObject> for &RustPoint {
| ^^^^^^
|
|
use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L113
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:113:6
|
113 | impl ToPyObject for Circle {
| ^^^^^^^^^^
|
|
use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L107
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:107:6
|
107 | impl ToPyObject for Line {
| ^^^^^^^^^^
|
|
use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L101
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:101:6
|
101 | impl ToPyObject for RustLineSegment {
| ^^^^^^^^^^
|
|
use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L95
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:95:6
|
95 | impl ToPyObject for RustLineString {
| ^^^^^^^^^^
|
|
use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L89
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:89:6
|
89 | impl ToPyObject for RustRect {
| ^^^^^^^^^^
|
|
use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L83
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:83:6
|
83 | impl ToPyObject for RustPoint {
| ^^^^^^^^^^
|
|
use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L11
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:11:42
|
11 | IntoPy, Py, PyAny, PyObject, Python, ToPyObject,
| ^^^^^^^^^^
|
|
use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/value_converter/additional_types.rs#L11
warning: use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/value_converter/additional_types.rs:11:5
|
11 | IntoPy, Py, PyAny, PyObject, Python, ToPyObject,
| ^^^^^^
|
|
use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/row_factories.rs#L4
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/row_factories.rs:4:58
|
4 | wrap_pyfunction, Bound, Py, PyAny, PyResult, Python, ToPyObject,
| ^^^^^^^^^^
|
|
use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.:
src/query_result.rs#L1
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
--> src/query_result.rs:1:78
|
1 | use pyo3::{prelude::*, pyclass, pymethods, types::PyDict, Py, PyAny, Python, ToPyObject};
| ^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
|
|
unused import: `consts::KWARGS_QUERYSTRINGS`:
src/value_converter/to_python.rs#L26
warning: unused import: `consts::KWARGS_QUERYSTRINGS`
--> src/value_converter/to_python.rs:26:9
|
26 | consts::KWARGS_QUERYSTRINGS,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
unused imports: `PySet` and `PyTuple`:
src/value_converter/to_python.rs#L13
warning: unused imports: `PySet` and `PyTuple`
--> src/value_converter/to_python.rs:13:78
|
13 | PyAnyMethods, PyBytes, PyDict, PyDictMethods, PyList, PyListMethods, PySet, PyString,
| ^^^^^
14 | PyTuple,
| ^^^^^^^
|
|
redundant else block:
src/value_converter/models/serde_value.rs#L114
warning: redundant else block
--> src/value_converter/models/serde_value.rs:114:10
|
114 | } else {
| __________^
115 | | return Err(RustPSQLDriverError::PyToRustValueConversionError(
116 | | "PyJSON must be dict value.".to_string(),
117 | | ));
118 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_else
= note: `-W clippy::redundant-else` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::redundant_else)]`
help: remove the `else` block and move the contents out
|
114 ~ }
115 + return Err(RustPSQLDriverError::PyToRustValueConversionError(
116 + "PyJSON must be dict value.".to_string(),
117 + ));
|
|
|
this `continue` expression is redundant:
src/value_converter/from_python.rs#L585
warning: this `continue` expression is redundant
--> src/value_converter/from_python.rs:585:13
|
585 | continue;
| ^^^^^^^^
|
= help: consider dropping the `continue` expression
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_continue
= note: `-W clippy::needless-continue` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::needless_continue)]`
|
|
unused import: `serde::de::IntoDeserializer`:
src/value_converter/dto/converter_impls.rs#L11
warning: unused import: `serde::de::IntoDeserializer`
--> src/value_converter/dto/converter_impls.rs:11:5
|
11 | use serde::de::IntoDeserializer;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
|
unneeded `()`:
src/statement/query.rs#L45
warning: unneeded `()`
--> src/statement/query.rs:45:20
|
45 | return ();
| ^^ help: remove the `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
= note: `-W clippy::unused-unit` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::unused_unit)]`
|
|
redundant field names in struct initialization:
src/statement/parameters.rs#L193
warning: redundant field names in struct initialization
--> src/statement/parameters.rs:193:13
|
193 | seq_parameters: seq_parameters,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `seq_parameters`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
|
|
redundant field names in struct initialization:
src/driver/connection_pool.rs#L224
warning: redundant field names in struct initialization
--> src/driver/connection_pool.rs:224:13
|
224 | ssl_mode: ssl_mode,
| ^^^^^^^^^^^^^^^^^^ help: replace it with: `ssl_mode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
|
|
redundant field names in struct initialization:
src/driver/connection_pool.rs#L223
warning: redundant field names in struct initialization
--> src/driver/connection_pool.rs:223:13
|
223 | ca_file: ca_file,
| ^^^^^^^^^^^^^^^^ help: replace it with: `ca_file`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
|
|
redundant field names in struct initialization:
src/driver/connection_pool.rs#L221
warning: redundant field names in struct initialization
--> src/driver/connection_pool.rs:221:13
|
221 | pool: pool,
| ^^^^^^^^^^ help: replace it with: `pool`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
|
|
redundant field names in struct initialization:
src/driver/connection_pool.rs#L141
warning: redundant field names in struct initialization
--> src/driver/connection_pool.rs:141:9
|
141 | ssl_mode: ssl_mode,
| ^^^^^^^^^^^^^^^^^^ help: replace it with: `ssl_mode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
|
|
redundant field names in struct initialization:
src/driver/connection_pool.rs#L140
warning: redundant field names in struct initialization
--> src/driver/connection_pool.rs:140:9
|
140 | ca_file: ca_file,
| ^^^^^^^^^^^^^^^^ help: replace it with: `ca_file`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
|
|
redundant field names in struct initialization:
src/driver/connection_pool.rs#L138
warning: redundant field names in struct initialization
--> src/driver/connection_pool.rs:138:9
|
138 | pool: pool,
| ^^^^^^^^^^ help: replace it with: `pool`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
= note: `-W clippy::redundant-field-names` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::redundant_field_names)]`
|
|
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/
|
|
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.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/
|
|
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.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.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/
|