Skip to content

Commit

Permalink
clean tests/ui/strings.rs
Browse files Browse the repository at this point in the history
Cleaning the empty lines for clarity.
  • Loading branch information
luisbg committed May 11, 2017
1 parent c79a350 commit a7635aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions tests/ui/strings.rs
Expand Up @@ -49,9 +49,6 @@ fn both() {
fn str_lit_as_bytes() {
let bs = "hello there".as_bytes();




// no warning, because this cannot be written as a byte string literal:
let ubs = "☃".as_bytes();

Expand All @@ -66,8 +63,5 @@ fn main() {
// the add is only caught for `String`
let mut x = 1;
; x = x + 1;



assert_eq!(2, x);
}
4 changes: 2 additions & 2 deletions tests/ui/strings.stderr
Expand Up @@ -65,9 +65,9 @@ note: lint level defined here
| ^^^^^^^^^^^^^^^^^^^

warning: manual implementation of an assign operation
--> $DIR/strings.rs:68:7
--> $DIR/strings.rs:65:7
|
68 | ; x = x + 1;
65 | ; x = x + 1;
| ^^^^^^^^^ help: replace it with `x += 1`
|
= note: #[warn(assign_op_pattern)] on by default
Expand Down

0 comments on commit a7635aa

Please sign in to comment.