Skip to content

Conversation

@Earlopain
Copy link
Contributor

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)]`

```
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)]`
```
@kddnewton kddnewton merged commit b7d1879 into ruby:main Oct 31, 2025
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants