diff --git a/tarpc/src/client.rs b/tarpc/src/client.rs index 9f82cac..15c943d 100644 --- a/tarpc/src/client.rs +++ b/tarpc/src/client.rs @@ -81,14 +81,10 @@ impl fmt::Debug for NewClient { } } -#[allow(dead_code)] -#[allow(clippy::no_effect)] -const CHECK_USIZE: () = { - if std::mem::size_of::() > std::mem::size_of::() { - // TODO: replace this with panic!() as soon as RFC 2345 gets stabilized - ["usize is too big to fit in u64"][42]; - } -}; +const _CHECK_USIZE: () = assert!( + std::mem::size_of::() <= std::mem::size_of::(), + "usize is too big to fit in u64" +); /// Handles communication from the client to request dispatch. #[derive(Debug)]