fix(clippy): resolve lints for Rust 1.96 (io_other_error, derivable_impls, manual_contains, unnecessary_sort_by, while_let_loop)
CI / cargo fmt --check (push) Successful in 23s
CI / cargo clippy (push) Successful in 32s
CI / cargo test (push) Successful in 44s

This commit is contained in:
gffranco
2026-06-24 01:01:51 +00:00
parent 96970405a0
commit 22a6bcb815
13 changed files with 25 additions and 46 deletions
+4 -9
View File
@@ -120,20 +120,15 @@ pub struct DefinitionItemNode {
pub definitions: Vec<Vec<InlineNode>>,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
pub enum TableAlign {
#[default]
Default,
Left,
Right,
Center,
}
impl Default for TableAlign {
fn default() -> Self {
Self::Default
}
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct TableNode {
pub span: Span,
@@ -170,9 +165,9 @@ pub struct CommentNode {
///
/// - `File` — line 0 or 1 of the document; tags the entire page.
/// - `Heading(i)` — within two lines below the i-th `HeadingNode` in the
/// document's `children`; tags that heading.
/// document's `children`; tags that heading.
/// - `Standalone` — anywhere else; the tag is its own anchor on the source
/// line.
/// line.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum TagScope {
File,
+2 -7
View File
@@ -9,8 +9,9 @@ use std::collections::HashMap;
use super::inline::InlineNode;
use super::span::Span;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default)]
pub enum LinkKind {
#[default]
Wiki,
Interwiki,
Diary,
@@ -31,12 +32,6 @@ pub struct LinkTarget {
pub is_directory: bool,
}
impl Default for LinkKind {
fn default() -> Self {
Self::Wiki
}
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct WikiLinkNode {
pub span: Span,