Use idiomatic names for string-related methods names.

This commit is contained in:
Corey Farwell
2016-08-23 21:27:20 -04:00
parent 0bd99f9d5c
commit 2655c89549
5 changed files with 26 additions and 26 deletions

View File

@@ -263,7 +263,7 @@ impl LintId {
}
/// Get the name of the lint.
pub fn as_str(&self) -> String {
pub fn to_string(&self) -> String {
self.lint.name_lower()
}
}