Skip to content

Commit b097c7e

Browse files
committed
fix(clippy): clippy fixes
1 parent fef7c58 commit b097c7e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ jobs:
4343
- name: Clippy
4444
run: cargo clippy --all -- -D warnings
4545
- name: Run tests
46-
run: cargo test --features span --features --v1 --all --verbose
46+
run: cargo test --features span --features v1 --all --verbose

src/document.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
use miette::SourceSpan;
33
use std::fmt::Display;
44

5-
use crate::{FormatConfig, KdlError, KdlNode, KdlNodeFormat, KdlValue};
5+
use crate::{FormatConfig, KdlError, KdlNode, KdlValue};
6+
#[cfg(feature = "v1")]
7+
use crate::KdlNodeFormat;
68

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

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

0 commit comments

Comments
 (0)