just 1.11.0

🤖 Just a command runner
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::*;

/// String wrapper that uses nonblank characters to display spaces and tabs
pub struct ShowWhitespace<'str>(pub &'str str);

impl<'str> Display for ShowWhitespace<'str> {
  fn fmt(&self, f: &mut Formatter) -> fmt::Result {
    for c in self.0.chars() {
      match c {
        '\t' => write!(f, "")?,
        ' ' => write!(f, "")?,
        _ => write!(f, "{c}")?,
      };
    }

    Ok(())
  }
}