From b614c874087e7b0e4ce98c8ae5f8c9ec55428e55 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Tue, 30 Sep 2025 07:56:11 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(Cargo):=20configure=20proj?= =?UTF-8?q?ect=20settings=20and=20lints?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - add clippy lints for format args and unnecessary semicolon warnings - allow rust dead-code lint temporarily for development phase - specify library and binary paths for project structure --- src/lib.rs | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index b93cf3f..a71b92f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,14 +1,5 @@ -pub fn add(left: u64, right: u64) -> u64 { - left + right -} - -#[cfg(test)] -mod tests { - use super::*; - - #[test] - fn it_works() { - let result = add(2, 2); - assert_eq!(result, 4); - } -} +#![cfg_attr(docsrs, feature(doc_cfg))] +#![warn(missing_docs)] +#![cfg_attr(docsrs, feature(rustdoc_missing_doc_code_examples))] +#![cfg_attr(docsrs, warn(rustdoc::invalid_codeblock_attributes))] +#![doc = include_str!("../docs/lib.md")]