From 7d7b5350357587c5ce500e93a9f3a12f9c3f54d2 Mon Sep 17 00:00:00 2001 From: maciektr Date: Thu, 5 Sep 2024 05:41:57 -0700 Subject: [PATCH] Remove allow(dead_code) from scarb-doc (#1574) - **Remove `allow(dead_code)` from scarb-doc** - **Update todo comment** --- extensions/scarb-doc/src/docs_generation/markdown/traits.rs | 2 +- extensions/scarb-doc/src/types.rs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/extensions/scarb-doc/src/docs_generation/markdown/traits.rs b/extensions/scarb-doc/src/docs_generation/markdown/traits.rs index 9c814d385..ab84f3f13 100644 --- a/extensions/scarb-doc/src/docs_generation/markdown/traits.rs +++ b/extensions/scarb-doc/src/docs_generation/markdown/traits.rs @@ -214,7 +214,7 @@ fn generate_markdown_from_item_data(doc_item: &impl DocItem, header_level: usize if let Some(sig) = &doc_item.signature() { if !sig.is_empty() { - // TODO(#1457) add cairo support to mdbook + // TODO(#1525) add cairo support to mdbook writeln!(&mut markdown, "```rust\n{sig}\n```\n").unwrap(); } } diff --git a/extensions/scarb-doc/src/types.rs b/extensions/scarb-doc/src/types.rs index 71676d5f1..a7d74fd7e 100644 --- a/extensions/scarb-doc/src/types.rs +++ b/extensions/scarb-doc/src/types.rs @@ -1,6 +1,3 @@ -// TODO(drknzz): Remove when not needed. -#![allow(dead_code)] - use cairo_lang_semantic::items::visibility; use cairo_lang_utils::Upcast; use itertools::Itertools;