Commit 85c7def
committed
Fix clippy lint on rust 1.91
```
Compiling ruby-prism v1.6.0 (/home/runner/work/prism/prism/rust/ruby-prism)
error: implicitly cloning a `String` by calling `to_string` on its dereferenced type
--> ruby-prism/build.rs:148:14
|
148 | _ => kind.to_string(),
| ^^^^^^^^^^^^^^^^ help: consider using: `kind.clone()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#implicit_clone
= note: `-D clippy::implicit-clone` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::implicit_clone)]`
```1 parent ac0d423 commit 85c7def
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
| 145 | + | |
| 146 | + | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
0 commit comments