Ensure rt and rt_multi_thread aren't both enabled

This commit is contained in:
bitfl0wer 2023-11-13 15:26:46 +01:00
parent 7f3bb944b7
commit aa657d12fc
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,8 @@
clippy::new_without_default,
clippy::useless_conversion
)]
#[cfg(all(feature = "rt", feature = "rt_multi_thread"))]
compile_error!("feature \"rt\" and feature \"rt_multi_thread\" cannot be enabled at the same time");
use url::{ParseError, Url};