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)]
|
#[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;
|
||||||
|
@ -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);
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user