Remove compile error on native-tls / tls conflict. (#74)
The docs.rs build uses the --all-features flag, which causes its documentation builds to fail when this macro is present. Fixes #71.
This commit is contained in:
committed by
GitHub
parent
57be414d97
commit
e366c8fcd0
@@ -181,12 +181,6 @@ pub fn patch(path: &str) -> Request {
|
|||||||
request("PATCH", path)
|
request("PATCH", path)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compilation error when both tls and native-tls features are enabled
|
|
||||||
#[cfg(all(feature = "tls", feature = "native-tls"))]
|
|
||||||
std::compile_error!(
|
|
||||||
"You have both the \"tls\" and \"native-tls\" features enabled on ureq. Please disable one of these features."
|
|
||||||
);
|
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|||||||
Reference in New Issue
Block a user