From 9f221f3953a402386f381f7b4bba61095ec4b5e0 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tfhe/src/lib.rs b/tfhe/src/lib.rs index 0758e7557a..2d346e7d28 100644 --- a/tfhe/src/lib.rs +++ b/tfhe/src/lib.rs @@ -2,6 +2,11 @@ //! //! 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))))] +#![doc(test(attr(allow(unused_variables))))] +#![doc(test(attr(allow(unused_imports))))] // Enable pedantic lints #![warn(clippy::pedantic)] // The following lints have been temporarily allowed