rust-lang/rust-clippy

Lint functions taking references as arguments but only use them to create an owned value

Open

#1 563 ouverte le 21 févr. 2017

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)Rust (1 391 forks)batch import
A-lintE-hardL-unnecessaryT-middlegood first issue

Métriques du dépôt

Stars
 (10 406 stars)
Métriques de merge PR
 (Merge moyen 19j 22h) (113 PRs mergées en 30 j)

Description

A function that takes a &str and always converts it to a String, should be taking a String argument instead. This is hard to generalize, but we could start with anything implementing to_owned and only calling to_owned.

Guide contributeur