do minor cleanups

* ToString and AsRef are in prelude, no need to import them
This commit is contained in:
Lzu Tao
2019-12-24 03:06:52 +07:00
parent 37b7970a7c
commit f5b896451a
17 changed files with 44 additions and 73 deletions

View File

@@ -50,7 +50,7 @@ impl Lint {
name: name.to_lowercase(),
group: group.to_string(),
desc: NL_ESCAPE_RE.replace(&desc.replace("\\\"", "\""), "").to_string(),
deprecation: deprecation.map(std::string::ToString::to_string),
deprecation: deprecation.map(ToString::to_string),
module: module.to_string(),
}
}