diff --git a/Cargo.toml b/Cargo.toml index 15d8ae8..a9ecf3f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,6 +19,7 @@ categories = [ ] # 🔗 repository = "https://github.com/ARCJ137442/Narsese.rs" + [dependencies] # 用于实现「静态闭包常量」 @@ -36,6 +37,7 @@ version = "0.42" # * ✅现已发布至`crates.io` # ! 【2024-03-23 19:19:01】似乎Rust-Analyzer无法获取私有仓库数据 features = ["bundled"] + [features] # 默认启用所有特性(可选禁用) default = ["bundled"] @@ -54,3 +56,16 @@ lexical_narsese = [ # 需要以此引入「静态闭包常量」 "lazy_static" ] + + +# 有关Clippy的参考: +# * 🔗 +[lints.clippy] + +# 📌【2024-08-25 00:31:01】允许文档注释中出现以下情况 +# ```markdown +# * 📝这是一个笔记 +# ? 💭这是一个问题 +# * 📍这是问题下的一个小点 +# ``` +doc_lazy_continuation = "allow" diff --git a/src/api/data_structure/evidence_value.rs b/src/api/data_structure/evidence_value.rs index ae53726..56c7327 100644 --- a/src/api/data_structure/evidence_value.rs +++ b/src/api/data_structure/evidence_value.rs @@ -246,6 +246,7 @@ impl EvidentValue for (V, V) { /// 单元测试 #[cfg(test)] +#[allow(dead_code)] // 允许未使用的代码,首次见于`TruthWithFunctions::fc` mod test { use super::*; use nar_dev_utils::{asserts, for_in_ifs, macro_once, manipulate, pipe};