Feat: small improvements + fixes + tests #300
Annotations
5 errors
Run clippy action:
rig-core/src/loaders/file.rs#L165
error: the following explicit lifetimes could be elided: 'a
--> rig-core/src/loaders/file.rs:165:6
|
165 | impl<'a> FileLoader<'a, Result<PathBuf, FileLoaderError>> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `-D clippy::needless-lifetimes` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_lifetimes)]`
help: elide the lifetimes
|
165 - impl<'a> FileLoader<'a, Result<PathBuf, FileLoaderError>> {
165 + impl FileLoader<'_, Result<PathBuf, FileLoaderError>> {
|
|
Run clippy action:
rig-core/src/loaders/file.rs#L230
error: the following explicit lifetimes could be elided: 'a
--> rig-core/src/loaders/file.rs:230:6
|
230 | impl<'a, T> Iterator for IntoIter<'a, T> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
230 - impl<'a, T> Iterator for IntoIter<'a, T> {
230 + impl<T> Iterator for IntoIter<'_, T> {
|
|
Run clippy action:
rig-core/src/loaders/pdf.rs#L338
error: the following explicit lifetimes could be elided: 'a
--> rig-core/src/loaders/pdf.rs:338:6
|
338 | impl<'a> PdfFileLoader<'a, Result<PathBuf, FileLoaderError>> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
338 - impl<'a> PdfFileLoader<'a, Result<PathBuf, FileLoaderError>> {
338 + impl PdfFileLoader<'_, Result<PathBuf, FileLoaderError>> {
|
|
Run clippy action:
rig-core/src/loaders/pdf.rs#L399
error: the following explicit lifetimes could be elided: 'a
--> rig-core/src/loaders/pdf.rs:399:6
|
399 | impl<'a, T> Iterator for IntoIter<'a, T> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
399 - impl<'a, T> Iterator for IntoIter<'a, T> {
399 + impl<T> Iterator for IntoIter<'_, T> {
|
|
Run clippy action
Clippy has exited with exit code 101
|
Loading