fix(clippy): clippy fixes

This commit is contained in:
Kat Marchán 2024-12-21 17:52:56 -08:00
parent fef7c58b02
commit b097c7e21b
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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).
@ -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)
}