From e654efd031e7813b64910747fbe73ec1d5ea0d33 Mon Sep 17 00:00:00 2001 From: "Mayeul@Zama" <69792125+mayeul-zama@users.noreply.github.com> Date: Thu, 25 Jul 2024 12:31:59 +0200 Subject: [PATCH] chore(all): enable all warnings in doctests --- tfhe/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tfhe/src/lib.rs b/tfhe/src/lib.rs index 5cee53e31b..e539665bd9 100644 --- a/tfhe/src/lib.rs +++ b/tfhe/src/lib.rs @@ -2,6 +2,9 @@ //! //! TFHE-rs is a fully homomorphic encryption (FHE) library that implements Zama's variant of TFHE. +// Enable all warnings in doctests +// https://doc.rust-lang.org/rustdoc/write-documentation/documentation-tests.html#showing-warnings-in-doctests +#![doc(test(attr(warn(unused))))] // Enable pedantic lints #![warn(clippy::pedantic)] // The following lints have been temporarily allowed