diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-12-18 02:37:30 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-12-19 10:18:02 +1100 |
| commit | 17ac2aa523f03c386669f569bc89019deb0c0ecd (patch) | |
| tree | 52fe2a7bdedb308a25f4515cca59407a66d67ee7 /src/libstd/option.rs | |
| parent | 9177f7ecb4d897a72aeaa0b3dfed930286946cf3 (diff) | |
| download | rust-17ac2aa523f03c386669f569bc89019deb0c0ecd.tar.gz rust-17ac2aa523f03c386669f569bc89019deb0c0ecd.zip | |
std::str: replace .as_imm_buf with .as_ptr.
Diffstat (limited to 'src/libstd/option.rs')
| -rw-r--r-- | src/libstd/option.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/option.rs b/src/libstd/option.rs index 87f6c8608fd..5067f6eb127 100644 --- a/src/libstd/option.rs +++ b/src/libstd/option.rs @@ -436,10 +436,10 @@ mod tests { #[test] fn test_get_str() { let x = ~"test"; - let addr_x = x.as_imm_buf(|buf, _len| buf); + let addr_x = x.as_ptr(); let opt = Some(x); let y = opt.unwrap(); - let addr_y = y.as_imm_buf(|buf, _len| buf); + let addr_y = y.as_ptr(); assert_eq!(addr_x, addr_y); } |
