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)]
{
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 {
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.
if path.starts_with("std/") {
return;

View File

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

View File

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