Skip to content

Commit

Permalink
fix(clippy): clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Dec 22, 2024
1 parent fef7c58 commit b097c7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:
- name: Clippy
run: cargo clippy --all -- -D warnings
- name: Run tests
run: cargo test --features span --features --v1 --all --verbose
run: cargo test --features span --features v1 --all --verbose
5 changes: 3 additions & 2 deletions src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
use miette::SourceSpan;
use std::fmt::Display;

use crate::{FormatConfig, KdlError, KdlNode, KdlNodeFormat, KdlValue};
use crate::{FormatConfig, KdlError, KdlNode, KdlValue};
#[cfg(feature = "v1")]
use crate::KdlNodeFormat;

/// Represents a KDL
/// [`Document`](https://github.com/kdl-org/kdl/blob/main/SPEC.md#document).
Expand Down Expand Up @@ -353,7 +355,6 @@ impl KdlDocument {
}

/// Parses a KDL v2 string into a document.
#[cfg(feature = "v1")]
pub fn parse_v2(s: &str) -> Result<Self, KdlError> {
crate::v2_parser::try_parse(crate::v2_parser::document, s)
}
Expand Down

0 comments on commit b097c7e

Please sign in to comment.