Use Pin
and a union to avoid UB in `TemplateBuf
#104
Annotations
1 error and 18 warnings
Build and test
Process completed with exit code 1.
|
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#L444
warning: deref which would be done by auto-deref
--> src/template/mod.rs:444:12
|
444 | 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#L373
warning: deref which would be done by auto-deref
--> src/template/mod.rs:373:43
|
373 | 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#L334
warning: deref which would be done by auto-deref
--> src/template/mod.rs:334:12
|
334 | 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#L217
warning: deref which would be done by auto-deref
--> src/template/mod.rs:217:12
|
217 | 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#L149
warning: deref which would be done by auto-deref
--> src/template/mod.rs:149:37
|
149 | 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#L112
warning: deref which would be done by auto-deref
--> src/template/mod.rs:112:12
|
112 | 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#L444
warning: deref which would be done by auto-deref
--> src/template/mod.rs:444:12
|
444 | 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#L373
warning: deref which would be done by auto-deref
--> src/template/mod.rs:373:43
|
373 | 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#L334
warning: deref which would be done by auto-deref
--> src/template/mod.rs:334:12
|
334 | 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#L217
warning: deref which would be done by auto-deref
--> src/template/mod.rs:217:12
|
217 | 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#L149
warning: deref which would be done by auto-deref
--> src/template/mod.rs:149:37
|
149 | 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#L112
warning: deref which would be done by auto-deref
--> src/template/mod.rs:112:12
|
112 | 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
|