match_value
now uses dispatch!
instead of alt
#3120
Annotations
16 errors and 1 warning
using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait:
src/lazy/text/buffer.rs#L2229
error: using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait
--> src/lazy/text/buffer.rs:2229:40
|
2229 | InvalidInputError::new(self.clone()),
| ^^^^^^^^^^^^ help: try dereferencing it: `*self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait:
src/lazy/text/buffer.rs#L2180
error: using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait
--> src/lazy/text/buffer.rs:2180:29
|
2180 | let mut remaining = self.clone();
| ^^^^^^^^^^^^ help: try dereferencing it: `*self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait:
src/lazy/text/buffer.rs#L1139
error: using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait
--> src/lazy/text/buffer.rs:1139:58
|
1139 | let sexp_iter = RawTextSExpIterator_1_1::new(input.clone());
| ^^^^^^^^^^^^^ help: try dereferencing it: `*input`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
unneeded `return` statement:
src/lazy/text/buffer.rs#L751
error: unneeded `return` statement
--> src/lazy/text/buffer.rs:751:21
|
751 | return Err(ErrMode::Backtrack(IonParseError::Invalid(error)));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
= note: `-D clippy::needless-return` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_return)]`
help: remove `return`
|
751 - return Err(ErrMode::Backtrack(IonParseError::Invalid(error)));
751 + Err(ErrMode::Backtrack(IonParseError::Invalid(error)))
|
|
using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait:
src/lazy/text/buffer.rs#L689
error: using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait
--> src/lazy/text/buffer.rs:689:34
|
689 | let mut input_copy = input.clone();
| ^^^^^^^^^^^^^ help: try dereferencing it: `*input`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait:
src/lazy/text/buffer.rs#L591
error: using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait
--> src/lazy/text/buffer.rs:591:21
|
591 | let input = self.clone();
| ^^^^^^^^^^^^ help: try dereferencing it: `*self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait:
src/lazy/text/buffer.rs#L578
error: using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait
--> src/lazy/text/buffer.rs:578:21
|
578 | let input = self.clone();
| ^^^^^^^^^^^^ help: try dereferencing it: `*self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait:
src/lazy/text/buffer.rs#L418
error: using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait
--> src/lazy/text/buffer.rs:418:21
|
418 | let input = self.clone();
| ^^^^^^^^^^^^ help: try dereferencing it: `*self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
= note: `-D clippy::clone-on-copy` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::clone_on_copy)]`
|
using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait:
src/lazy/text/buffer.rs#L2229
error: using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait
--> src/lazy/text/buffer.rs:2229:40
|
2229 | InvalidInputError::new(self.clone()),
| ^^^^^^^^^^^^ help: try dereferencing it: `*self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait:
src/lazy/text/buffer.rs#L2180
error: using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait
--> src/lazy/text/buffer.rs:2180:29
|
2180 | let mut remaining = self.clone();
| ^^^^^^^^^^^^ help: try dereferencing it: `*self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait:
src/lazy/text/buffer.rs#L1139
error: using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait
--> src/lazy/text/buffer.rs:1139:58
|
1139 | let sexp_iter = RawTextSExpIterator_1_1::new(input.clone());
| ^^^^^^^^^^^^^ help: try dereferencing it: `*input`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
unneeded `return` statement:
src/lazy/text/buffer.rs#L751
error: unneeded `return` statement
--> src/lazy/text/buffer.rs:751:21
|
751 | return Err(ErrMode::Backtrack(IonParseError::Invalid(error)));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
= note: `-D clippy::needless-return` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_return)]`
help: remove `return`
|
751 - return Err(ErrMode::Backtrack(IonParseError::Invalid(error)));
751 + Err(ErrMode::Backtrack(IonParseError::Invalid(error)))
|
|
using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait:
src/lazy/text/buffer.rs#L689
error: using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait
--> src/lazy/text/buffer.rs:689:34
|
689 | let mut input_copy = input.clone();
| ^^^^^^^^^^^^^ help: try dereferencing it: `*input`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait:
src/lazy/text/buffer.rs#L591
error: using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait
--> src/lazy/text/buffer.rs:591:21
|
591 | let input = self.clone();
| ^^^^^^^^^^^^ help: try dereferencing it: `*self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait:
src/lazy/text/buffer.rs#L578
error: using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait
--> src/lazy/text/buffer.rs:578:21
|
578 | let input = self.clone();
| ^^^^^^^^^^^^ help: try dereferencing it: `*self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait:
src/lazy/text/buffer.rs#L418
error: using `clone` on type `TextBuffer<'_>` which implements the `Copy` trait
--> src/lazy/text/buffer.rs:418:21
|
418 | let input = self.clone();
| ^^^^^^^^^^^^ help: try dereferencing it: `*self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
= note: `-D clippy::clone-on-copy` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::clone_on_copy)]`
|
Build and Test (ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|