MAINT: eprintln and dbg cleanup

This commit is contained in:
Jeremy Wall 2019-11-09 18:52:02 -06:00
parent b552e7b08e
commit b36a9513eb
3 changed files with 2 additions and 6 deletions

View File

@ -586,12 +586,12 @@ impl ModuleDef {
#[cfg(windows)] #[cfg(windows)]
{ {
if path.is_relative() { if path.is_relative() {
def.path.fragment = dbg!(base.join(path).to_string_lossy().to_string()); def.path.fragment = base.join(path).to_string_lossy().to_string();
} }
} }
} }
if let Expression::Import(ref mut def) = e { if let Expression::Import(ref mut def) = e {
let path = dbg!(PathBuf::from(&def.path.fragment)); let path = PathBuf::from(&def.path.fragment);
// std/ paths are special and do not get made into absolute paths. // std/ paths are special and do not get made into absolute paths.
if path.starts_with("std/") { if path.starts_with("std/") {
return; return;

View File

@ -69,7 +69,6 @@ impl<V: Into<String> + Clone> FormatRenderer for SimpleFormatter<V> {
count += 1; count += 1;
should_escape = false; should_escape = false;
} else if c == '\\' && !should_escape { } else if c == '\\' && !should_escape {
eprintln!("found an escape char {}", self.tmpl);
should_escape = true; should_escape = true;
} else { } else {
buf.push(c); buf.push(c);

View File

@ -61,19 +61,16 @@ fn escapequoted<'a>(input: OffsetStrIter<'a>) -> Result<OffsetStrIter<'a>, Strin
if escape { if escape {
match c as char { match c as char {
'n' => { 'n' => {
eprintln!("Pushing new line onto string");
frag.push('\n'); frag.push('\n');
escape = false; escape = false;
continue; continue;
} }
'r' => { 'r' => {
eprintln!("Pushing carriage return onto string");
frag.push('\r'); frag.push('\r');
escape = false; escape = false;
continue; continue;
} }
't' => { 't' => {
eprintln!("Pushing tab onto string");
frag.push('\t'); frag.push('\t');
escape = false; escape = false;
continue; continue;