aboutsummaryrefslogtreecommitdiff
path: root/src/ssl/error.rs
diff options
context:
space:
mode:
authorMichael Gehring <[email protected]>2014-10-30 09:58:22 +0100
committerMichael Gehring <[email protected]>2014-10-30 09:58:22 +0100
commit1eb79df25abf3eede1f9d799992927986ce8c7a0 (patch)
tree8442882ca84d24508a59a9939654aadbdb54bbbc /src/ssl/error.rs
parentMerge pull request #85 from vhbit/x509-load-pem (diff)
downloadrust-openssl-1eb79df25abf3eede1f9d799992927986ce8c7a0.tar.xz
rust-openssl-1eb79df25abf3eede1f9d799992927986ce8c7a0.zip
fail! -> panic!
Diffstat (limited to 'src/ssl/error.rs')
-rw-r--r--src/ssl/error.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ssl/error.rs b/src/ssl/error.rs
index 5af6c866..7066299f 100644
--- a/src/ssl/error.rs
+++ b/src/ssl/error.rs
@@ -74,7 +74,7 @@ impl SslError {
fn test_uknown_error_should_have_correct_messages() {
let errs = match SslError::from_error(336032784) {
OpenSslErrors(errs) => errs,
- _ => fail!("This should always be an `OpenSslErrors` variant.")
+ _ => panic!("This should always be an `OpenSslErrors` variant.")
};
let UnknownError { ref library, ref function, ref reason } = errs[0];