Skip to content

Conversation

@erickt
Copy link
Contributor

@erickt erickt commented May 23, 2013

Simple patch series to fix up all the warnings a rustc compile is giving at the moment. It also fixes a NOTE in to_bytes.rs to remove the to_bytes::iter_bytes_<N> functions.

@brson
Copy link
Contributor

brson commented May 23, 2013

Thanks for doing cleanup!

bors added a commit that referenced this pull request May 24, 2013
Simple patch series to fix up all the warnings a rustc compile is giving at the moment. It also fixes a NOTE in `to_bytes.rs` to remove the `to_bytes::iter_bytes_<N>` functions.
@bors bors closed this May 24, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Feb 11, 2021
Downgrade trivial_regex to nursery

See rust-lang#6690. I think there is still value in a trivial_regex lint, but only if clippy can tell that the regex is only ever constructed and applied to a single input.

```rust
let regex = Regex::new("trivial_regex")?;
println!("{}", regex.is_match(s));
// `regex` never used again
```

---

changelog: remove `trivial_regex` from default set of enabled lints
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.

3 participants