diff options
| author | llogiq <bogusandre@gmail.com> | 2015-09-01 14:43:42 +0200 |
|---|---|---|
| committer | llogiq <bogusandre@gmail.com> | 2015-09-01 14:43:42 +0200 |
| commit | 99383f8f5c276d8060f2105ff7e678c81bf4df05 (patch) | |
| tree | ee63da0bffa6c8ef04983d002f5e793a698ecc2b /src/compiletest/errors.rs | |
| parent | ae75ef9e62b7df8c46865cfb907c56cab1f29f81 (diff) | |
| download | rust-99383f8f5c276d8060f2105ff7e678c81bf4df05.tar.gz rust-99383f8f5c276d8060f2105ff7e678c81bf4df05.zip | |
refactored compiletest following clippy's suggestions
Diffstat (limited to 'src/compiletest/errors.rs')
| -rw-r--r-- | src/compiletest/errors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiletest/errors.rs b/src/compiletest/errors.rs index 4b2a3e0283d..a3ad022ebd5 100644 --- a/src/compiletest/errors.rs +++ b/src/compiletest/errors.rs @@ -76,7 +76,7 @@ fn parse_expected(last_nonfollow_error: Option<usize>, let letters = line[kind_start..].chars(); let msg = letters.skip_while(|c| c.is_whitespace()) .skip_while(|c| !c.is_whitespace()) - .collect::<String>().trim().to_string(); + .collect::<String>().trim().to_owned(); let (which, line) = if follow { assert!(adjusts == 0, "use either //~| or //~^, not both."); |
