Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Oct 5, 2024
1 parent 75ebbd7 commit 489a74a
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 83 deletions.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub struct KdlDiagnostic {
pub input: Arc<String>,

/// Offset in chars of the error.
#[label("{}", label.unwrap_or("here".into()))]
#[label("{}", label.unwrap_or("here"))]
pub span: SourceSpan,

/// Label text for this span. Defaults to `"here"`.
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
//! License](LICENSE.md).

#![deny(missing_debug_implementations, nonstandard_style)]
#![warn(missing_docs, unreachable_pub, rust_2018_idioms, unreachable_pub)]
#![warn(missing_docs, rust_2018_idioms, unreachable_pub)]
// #![cfg_attr(test, deny(warnings))]
#![doc(html_favicon_url = "https://kdl.dev/favicon.ico")]
#![doc(html_logo_url = "https://kdl.dev/logo.svg")]
Expand Down
Loading

0 comments on commit 489a74a

Please sign in to comment.