libsyntax: remove unnecessary as_slice() calls

This commit is contained in:
Jorge Aparicio
2014-11-27 15:00:50 -05:00
parent 60338d91c4
commit 39f44c0c20
7 changed files with 22 additions and 24 deletions

View File

@@ -2844,7 +2844,7 @@ impl<'a> State<'a> {
comments::BlankLine => {
// We need to do at least one, possibly two hardbreaks.
let is_semi = match self.s.last_token() {
pp::String(s, _) => ";" == s.as_slice(),
pp::String(s, _) => ";" == s,
_ => false
};
if is_semi || self.is_begin() || self.is_end() {