From be876426b192fadbead1af96ee8071b104ce44fa Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 5 Sep 2024 20:45:22 -0700 Subject: [PATCH] Fix warnings. --- Cargo.toml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index e8153e5..6a231a9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,3 +29,22 @@ members = [ "literals", "restricted-text", ] + +[lints.rust.unexpected_cfgs] +level = "warn" +check-cfg = [ + 'cfg(bench)', + 'cfg(read_initializer)', + 'cfg(can_vector)', + 'cfg(clamp)', + 'cfg(extend_one)', + 'cfg(pattern)', + 'cfg(seek_stream_len)', + 'cfg(shrink_to)', + 'cfg(toowned_clone_into)', + 'cfg(try_reserve)', + 'cfg(unix_socket_peek)', + 'cfg(windows_by_handle)', + 'cfg(write_all_vectored)', + 'cfg(windows_file_type_ext)', +]