mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
MAINT: eprintln and dbg cleanup
This commit is contained in:
parent
b552e7b08e
commit
b36a9513eb
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user