File: fix-build-error-in-example.patch

package info (click to toggle)
rust-anstream 0.6.21-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 316 kB
  • sloc: makefile: 2
file content (13 lines) | stat: -rw-r--r-- 453 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: anstream/examples/dump-stream.rs
===================================================================
--- anstream.orig/examples/dump-stream.rs
+++ anstream/examples/dump-stream.rs
@@ -55,7 +55,7 @@ fn style(
 }
 
 fn print_number(stdout: &mut impl Write, fixed: u8, style: anstyle::Style) -> std::io::Result<()> {
-    write!(stdout, "{style}{fixed:>3X}{style:#}",)
+    write!(stdout, "{style:?}{fixed:>3X}{style:#?}",)
 }
 
 #[derive(Default)]