Skip to content
This repository was archived by the owner on Jun 27, 2018. It is now read-only.

Commit 87413f5

Browse files
Fix MIR html escaping
1 parent cebb14c commit 87413f5

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/bin/playbot.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ use std::io::{self, Read};
2020
use std::str;
2121
use std::u16;
2222
use std::thread;
23-
use std::error::Error;
2423

2524
static DEFAULT_CHANNEL: ReleaseChannel = ReleaseChannel::Stable;
2625

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ pub fn highlight(output_format: CompileOutput, output: &str) -> String {
225225
let lexer = match output_format {
226226
CompileOutput::Asm => "gas",
227227
CompileOutput::Llvm => "llvm",
228-
CompileOutput::Mir => return String::from(output),
228+
CompileOutput::Mir => "text",
229229
};
230230

231231
let mut child = Command::new("pygmentize")

0 commit comments

Comments
 (0)