diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-10-21 13:08:31 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-10-22 08:09:56 -0700 |
| commit | daf5f5a4d10513ff42e79fa7ef8819b170f3a13d (patch) | |
| tree | 7a07a79c43e02debcc6bbb33d90a5e41b70119e6 /src/libstd/unstable/dynamic_lib.rs | |
| parent | 15a6bdebab4e7b811b9a902e3f8ed225c59af06e (diff) | |
Drop the '2' suffix from logging macros
Who doesn't like a massive renaming?
Diffstat (limited to 'src/libstd/unstable/dynamic_lib.rs')
| -rw-r--r-- | src/libstd/unstable/dynamic_lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/unstable/dynamic_lib.rs b/src/libstd/unstable/dynamic_lib.rs index 58ff51fe102..d3d768bc0c6 100644 --- a/src/libstd/unstable/dynamic_lib.rs +++ b/src/libstd/unstable/dynamic_lib.rs @@ -33,7 +33,7 @@ impl Drop for DynamicLibrary { } } { Ok(()) => {}, - Err(str) => fail2!("{}", str) + Err(str) => fail!("{}", str) } } } @@ -94,13 +94,13 @@ mod test { // The math library does not need to be loaded since it is already // statically linked in let libm = match DynamicLibrary::open(None) { - Err(error) => fail2!("Could not load self as module: {}", error), + Err(error) => fail!("Could not load self as module: {}", error), Ok(libm) => libm }; let cosine: extern fn(libc::c_double) -> libc::c_double = unsafe { match libm.symbol("cos") { - Err(error) => fail2!("Could not load function cos: {}", error), + Err(error) => fail!("Could not load function cos: {}", error), Ok(cosine) => cosine } }; @@ -109,7 +109,7 @@ mod test { let expected_result = 1.0; let result = cosine(argument); if result != expected_result { - fail2!("cos({:?}) != {:?} but equaled {:?} instead", argument, + fail!("cos({:?}) != {:?} but equaled {:?} instead", argument, expected_result, result) } } @@ -124,7 +124,7 @@ mod test { let path = GenericPath::new("/dev/null"); match DynamicLibrary::open(Some(&path)) { Err(_) => {} - Ok(_) => fail2!("Successfully opened the empty library.") + Ok(_) => fail!("Successfully opened the empty library.") } } } |
