Use MaybeUninit
to avoid aliasing Vec
and String
while they can be moved.
#108
Annotations
18 warnings
Build and test
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use the latest version of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/
|
deref which would be done by auto-deref:
src/template/mod.rs#L446
warning: deref which would be done by auto-deref
--> src/template/mod.rs:446:12
|
446 | source: &*source,
| ^^^^^^^^ help: try: `&source`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
src/template/mod.rs#L377
warning: deref which would be done by auto-deref
--> src/template/mod.rs:377:43
|
377 | let template = ByteTemplate::from_slice(&*source)?;
| ^^^^^^^^ help: try: `&source`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
src/template/mod.rs#L338
warning: deref which would be done by auto-deref
--> src/template/mod.rs:338:12
|
338 | source: &*source,
| ^^^^^^^^ help: try: `&source`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
src/template/mod.rs#L220
warning: deref which would be done by auto-deref
--> src/template/mod.rs:220:12
|
220 | source: &*source,
| ^^^^^^^^ help: try: `&source`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
src/template/mod.rs#L153
warning: deref which would be done by auto-deref
--> src/template/mod.rs:153:37
|
153 | let template = Template::from_str(&*source)?;
| ^^^^^^^^ help: try: `&source`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
src/template/mod.rs#L114
warning: deref which would be done by auto-deref
--> src/template/mod.rs:114:12
|
114 | source: &*source,
| ^^^^^^^^ help: try: `&source`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
= note: `#[warn(clippy::explicit_auto_deref)]` on by default
|
this manual char comparison can be written more succinctly:
src/error.rs#L463
warning: this manual char comparison can be written more succinctly
--> src/error.rs:463:32
|
463 | match source[position..].find(|c| c == '\n' || c == '\r') {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using an array of `char`: `['\n', '\r']`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_pattern_char_comparison
|
this manual char comparison can be written more succinctly:
src/error.rs#L456
warning: this manual char comparison can be written more succinctly
--> src/error.rs:456:33
|
456 | match source[..position].rfind(|c| c == '\n' || c == '\r') {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using an array of `char`: `['\n', '\r']`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_pattern_char_comparison
= note: `#[warn(clippy::manual_pattern_char_comparison)]` on by default
|
deref which would be done by auto-deref:
src/template/mod.rs#L446
warning: deref which would be done by auto-deref
--> src/template/mod.rs:446:12
|
446 | source: &*source,
| ^^^^^^^^ help: try: `&source`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
src/template/mod.rs#L377
warning: deref which would be done by auto-deref
--> src/template/mod.rs:377:43
|
377 | let template = ByteTemplate::from_slice(&*source)?;
| ^^^^^^^^ help: try: `&source`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
src/template/mod.rs#L338
warning: deref which would be done by auto-deref
--> src/template/mod.rs:338:12
|
338 | source: &*source,
| ^^^^^^^^ help: try: `&source`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
src/template/mod.rs#L220
warning: deref which would be done by auto-deref
--> src/template/mod.rs:220:12
|
220 | source: &*source,
| ^^^^^^^^ help: try: `&source`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
src/template/mod.rs#L153
warning: deref which would be done by auto-deref
--> src/template/mod.rs:153:37
|
153 | let template = Template::from_str(&*source)?;
| ^^^^^^^^ help: try: `&source`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
src/template/mod.rs#L114
warning: deref which would be done by auto-deref
--> src/template/mod.rs:114:12
|
114 | source: &*source,
| ^^^^^^^^ help: try: `&source`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
= note: `#[warn(clippy::explicit_auto_deref)]` on by default
|
this manual char comparison can be written more succinctly:
src/error.rs#L463
warning: this manual char comparison can be written more succinctly
--> src/error.rs:463:32
|
463 | match source[position..].find(|c| c == '\n' || c == '\r') {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using an array of `char`: `['\n', '\r']`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_pattern_char_comparison
|
this manual char comparison can be written more succinctly:
src/error.rs#L456
warning: this manual char comparison can be written more succinctly
--> src/error.rs:456:33
|
456 | match source[..position].rfind(|c| c == '\n' || c == '\r') {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using an array of `char`: `['\n', '\r']`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_pattern_char_comparison
= note: `#[warn(clippy::manual_pattern_char_comparison)]` on by default
|
Build and test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|