Skip to content

Commit

Permalink
style: address lints (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades authored Feb 1, 2025
1 parent c6fb87d commit 43963f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@ impl Backend {
self.run_process(ctx, content, args)?;

let depth = ctx.path.ancestors().count() - 2;
let rel_path: PathBuf = std::iter::repeat(Path::new(".."))
.take(depth)
let rel_path: PathBuf = std::iter::repeat_n(Path::new(".."), depth)
.collect::<PathBuf>()
.join(self.relative_file_path(ctx));

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mod config;
pub struct D2;

impl Preprocessor for D2 {
fn name(&self) -> &str {
fn name(&self) -> &'static str {
"d2"
}

Expand Down

0 comments on commit 43963f0

Please sign in to comment.