Skip to content

Commit

Permalink
fix: lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed Sep 27, 2024
1 parent c065170 commit 83a1062
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ impl From<WalkdirError> for TemplateError {

fn template_segment(template_str: &str, line: usize, col: usize) -> String {
let range = 3;
let line_start = if line >= range { line - range } else { 0 };
let line_start = line.saturating_sub(range);
let line_end = line + range;

let mut buf = String::new();
Expand Down
1 change: 0 additions & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
/// assert_eq!(&result2, "great!");
/// # Ok(()) }
/// ```

#[macro_export]
macro_rules! handlebars_helper {
($struct_name:ident: |$($name:ident: $tpe:tt$(<$($gen:ty),+>)?),*
Expand Down

0 comments on commit 83a1062

Please sign in to comment.