Skip to content

Commit

Permalink
fix: 💚 修复代码以通过CI clippy测试
Browse files Browse the repository at this point in the history
允许某部分测试代码未使用;允许文档注释中部分非正规语法
  • Loading branch information
ARCJ137442 committed Sep 14, 2024
1 parent aa2d416 commit a8f74aa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ categories = [
] # 🔗<https://crates.io/category_slugs>
repository = "https://github.com/ARCJ137442/Narsese.rs"


[dependencies]

# 用于实现「静态闭包常量」
Expand All @@ -36,6 +37,7 @@ version = "0.42" # * ✅现已发布至`crates.io`
# ! 【2024-03-23 19:19:01】似乎Rust-Analyzer无法获取私有仓库数据
features = ["bundled"]


[features]
# 默认启用所有特性(可选禁用)
default = ["bundled"]
Expand All @@ -54,3 +56,16 @@ lexical_narsese = [
# 需要以此引入「静态闭包常量」
"lazy_static"
]


# 有关Clippy的参考:
# * 🔗<https://doc.rust-lang.org/clippy/configuration.html>
[lints.clippy]

# 📌【2024-08-25 00:31:01】允许文档注释中出现以下情况
# ```markdown
# * 📝这是一个笔记
# ? 💭这是一个问题
# * 📍这是问题下的一个小点
# ```
doc_lazy_continuation = "allow"
1 change: 1 addition & 0 deletions src/api/data_structure/evidence_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ impl<V: EvidentNumber + Copy> EvidentValue<V> 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};
Expand Down

0 comments on commit a8f74aa

Please sign in to comment.