diff options
| author | nham <hamann.nick@gmail.com> | 2014-08-06 01:18:19 -0400 | 
|---|---|---|
| committer | nham <hamann.nick@gmail.com> | 2014-08-06 01:18:19 -0400 | 
| commit | 30cfce3d922b7c48d79e5c0f87eda9670ed09f6a (patch) | |
| tree | 621eb68df7e6a3e705df1ff4baf0526cb61426fc | |
| parent | 1c2c4942a6a3a491274e907becf29f966a870a31 (diff) | |
| download | rust-30cfce3d922b7c48d79e5c0f87eda9670ed09f6a.tar.gz rust-30cfce3d922b7c48d79e5c0f87eda9670ed09f6a.zip  | |
Use a byte literal in libregex
| -rw-r--r-- | src/libregex/test/bench.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libregex/test/bench.rs b/src/libregex/test/bench.rs index 2a606ccd0ce..4bd9d1a8666 100644 --- a/src/libregex/test/bench.rs +++ b/src/libregex/test/bench.rs @@ -159,7 +159,7 @@ fn gen_text(n: uint) -> String { .collect::<Vec<u8>>(); for (i, b) in bytes.mut_iter().enumerate() { if i % 20 == 0 { - *b = '\n' as u8 + *b = b'\n' } } String::from_utf8(bytes).unwrap()  | 
