Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuereth committed Apr 4, 2024
1 parent 5561e62 commit eff5b9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/weaver_diff/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const RESET: &str = "\x1b[0m";

/// Constructs a "diff" string of the original vs. updated.
/// Will create colorized (ANSI) output w/ `+` representing additions and `-` representing removals.
#[must_use]
pub fn diff_output(original: &str, updated: &str) -> String {
let mut result = String::new();
let diff = TextDiff::from_lines(original, updated);

Check warning on line 16 in crates/weaver_diff/src/lib.rs

View check run for this annotation

Codecov / codecov/patch

crates/weaver_diff/src/lib.rs#L16

Added line #L16 was not covered by tests
Expand Down

0 comments on commit eff5b9f

Please sign in to comment.