1
Fork 0

Fix various useless derefs and slicings

This commit is contained in:
Oliver Schneider 2017-03-24 09:31:26 +01:00
parent 79feb9476d
commit eb447f4ef4
No known key found for this signature in database
GPG key ID: A69F8D225B3AD7D9
46 changed files with 120 additions and 122 deletions

View file

@ -616,7 +616,7 @@ fn mk_tests(cx: &TestCtxt) -> P<ast::Item> {
fn is_test_crate(krate: &ast::Crate) -> bool {
match attr::find_crate_name(&krate.attrs) {
Some(s) if "test" == &*s.as_str() => true,
Some(s) if "test" == s.as_str() => true,
_ => false
}
}