Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Oct 28, 2024
1 parent 4d6de28 commit c50cdc1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cache_diff/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ pub trait CacheDiff {
bullet_stream::style::value(value.to_string())
}

/// How values are displayed in the diff output, the default is to wrap them in backticks
///
/// Enable ANSI colors with `features = ["bullet_stream"]`
#[cfg(not(feature = "bullet_stream"))]
fn fmt_value<T: std::fmt::Display>(&self, value: &T) -> String {
format!("`{}`", value)
Expand Down

0 comments on commit c50cdc1

Please sign in to comment.