rust-lang/rust-clippy

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

Open

#1,563 建立於 2017年2月21日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Rust (1,391 fork)batch import
A-lintE-hardL-unnecessaryT-middlegood first issue

倉庫指標

Star
 (10,406 star)
PR 合併指標
 (平均合併 19天 22小時) (30 天內合併 113 個 PR)

描述

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.

貢獻者指南