mirror of https://github.com/kdl-org/kdl-rs.git
fix(clippy): clippy fixes
This commit is contained in:
parent
fef7c58b02
commit
b097c7e21b
|
|
@ -43,4 +43,4 @@ jobs:
|
||||||
- name: Clippy
|
- name: Clippy
|
||||||
run: cargo clippy --all -- -D warnings
|
run: cargo clippy --all -- -D warnings
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --features span --features --v1 --all --verbose
|
run: cargo test --features span --features v1 --all --verbose
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,9 @@
|
||||||
use miette::SourceSpan;
|
use miette::SourceSpan;
|
||||||
use std::fmt::Display;
|
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
|
/// Represents a KDL
|
||||||
/// [`Document`](https://github.com/kdl-org/kdl/blob/main/SPEC.md#document).
|
/// [`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.
|
/// Parses a KDL v2 string into a document.
|
||||||
#[cfg(feature = "v1")]
|
|
||||||
pub fn parse_v2(s: &str) -> Result<Self, KdlError> {
|
pub fn parse_v2(s: &str) -> Result<Self, KdlError> {
|
||||||
crate::v2_parser::try_parse(crate::v2_parser::document, s)
|
crate::v2_parser::try_parse(crate::v2_parser::document, s)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue