diff options
| -rw-r--r-- | src/color_new.rs | 2 | ||||
| -rw-r--r-- | src/display/display_sink.rs | 2 | 
2 files changed, 3 insertions, 1 deletions
| diff --git a/src/color_new.rs b/src/color_new.rs index fac0e2b..671fbd0 100644 --- a/src/color_new.rs +++ b/src/color_new.rs @@ -74,6 +74,8 @@ mod ansi {          }      } +    // could reasonably be always present, but only used if feature="alloc" +    #[cfg(feature="alloc")]      const DEFAULT_FG: &'static str = "\x1b[39m";      #[cfg(feature="alloc")] diff --git a/src/display/display_sink.rs b/src/display/display_sink.rs index 6741a11..18713cd 100644 --- a/src/display/display_sink.rs +++ b/src/display/display_sink.rs @@ -430,7 +430,7 @@ mod instruction_text_sink {                  // `InstructionTextSink::write_char` is only used by yaxpeax-x86, and is only used to                  // write single ASCII characters. this is wrong in the general case, but `write_char`                  // here is not going to be used in the general case. -                if cfg!(debug_asertions) { +                if cfg!(debug_assertions) {                      panic!("InstructionTextSink::write_char would truncate output");                  }                  let to_push = c as u8; | 
