warning: variables can be used directly in the `format!` string
--> src/ser.rs:448:15
|
448 | match write!(adapter, "{}", value) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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
|
448 - match write!(adapter, "{}", value) {
448 + match write!(adapter, "{value}") {
|
warning: variables can be used directly in the `format!` string
--> src/value/mod.rs:182:37
|
182 | Value::Bool(boolean) => write!(formatter, "Bool({})", boolean),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
182 - Value::Bool(boolean) => write!(formatter, "Bool({})", boolean),
182 + Value::Bool(boolean) => write!(formatter, "Bool({boolean})"),
|
warning: variables can be used directly in the `format!` string
--> src/value/mod.rs:184:38
|
184 | Value::String(string) => write!(formatter, "String({:?})", string),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
184 - Value::String(string) => write!(formatter, "String({:?})", string),
184 + Value::String(string) => write!(formatter, "String({string:?})"),
|
warning: variables can be used directly in the `format!` string
--> src/number.rs:365:9
|
365 | write!(formatter, "Number({})", self)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
365 - write!(formatter, "Number({})", self)
365 + write!(formatter, "Number({self})")
|
warning: lifetime flowing from input to output with different syntax can be confusing
--> src/map.rs:274:21
|
274 | pub fn entry<S>(&mut self, key: S) -> Entry
| ^^^^^^^^^ ----- the lifetime gets resolved as `'_`
| |
| this lifetime flows to the output
|
= note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
|
274 | pub fn entry<S>(&mut self, key: S) -> Entry<'_>
| ++++
warning: lifetime flowing from input to output with different syntax can be confusing
--> src/map.rs:303:17
|
303 | pub fn iter(&self) -> Iter {
| ^^^^^ ---- the lifetime gets resolved as `'_`
| |
| this lifetime flows to the output
|
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
|
303 | pub fn iter(&self) -> Iter<'_> {
| ++++
warning: lifetime flowing from input to output with different syntax can be confusing
--> src/map.rs:311:21
|
311 | pub fn iter_mut(&mut self) -> IterMut {
| ^^^^^^^^^ ------- the lifetime gets resolved as `'_`
| |
| this lifetime flows to the output
|
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
|
311 | pub fn iter_mut(&mut self) -> IterMut<'_> {
| ++++
warning: lifetime flowing from input to output with different syntax can be confusing
--> src/map.rs:319:17
|
319 | pub fn keys(&self) -> Keys {
| ^^^^^ ---- the lifetime gets resolved as `'_`
| |
| this lifetime flows to the output
|
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
|
319 | pub fn keys(&self) -> Keys<'_> {
| ++++
warning: lifetime flowing from input to output with different syntax can be confusing
--> src/map.rs:327:19
|
327 | pub fn values(&self) -> Values {
| ^^^^^ ------ the lifetime gets resolved as `'_`
| |
| this lifetime flows to the output
|
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
|
327 | pub fn values(&self) -> Values<'_> {
| ++++
warning: lifetime flowing from input to output with different syntax can be confusing
--> src/map.rs:335:23
|
335 | pub fn values_mut(&mut self) -> ValuesMut {
| ^^^^^^^^^ --------- the lifetime gets resolved as `'_`
| |
| this lifetime flows to the output
|
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
|
335 | pub fn values_mut(&mut self) -> ValuesMut<'_> {
| ++++
warning: lifetime flowing from input to output with different syntax can be confusing
--> src/value/de.rs:1388:19
|
1388 | fn unexpected(&self) -> Unexpected {
| ^^^^^ ---------- the lifetime gets resolved as `'_`
| |
| this lifetime flows to the output
|
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
|
1388 | fn unexpected(&self) -> Unexpected<'_> {
| ++++
warning: lifetime flowing from input to output with different syntax can be confusing
--> src/number.rs:798:30
|
798 | pub(crate) fn unexpected(&self) -> Unexpected {
| ^^^^^ ---------- the lifetime gets resolved as `'_`
| |
| this lifetime flows to the output
|
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
|
798 | pub(crate) fn unexpected(&self) -> Unexpected<'_> {
| ++++
warning: calling .bytes() is very inefficient when data is not in memory
--> src/read.rs:202:40
|
202 | iter: LineColIterator::new(reader.bytes()),
| ^^^^^^^^^^^^^^
|
= help: consider using `BufReader`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unbuffered_bytes
= note: `-W clippy::unbuffered-bytes` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::unbuffered_bytes)]`