MAINT: more dbg cleanup

This commit is contained in:
Jeremy Wall 2019-11-09 18:48:39 -06:00
parent db610c56f9
commit 9df7eb7cd7
3 changed files with 3 additions and 6 deletions

View File

@ -77,7 +77,7 @@ impl From<regex::Error> for Error {
impl From<std::io::Error> for Error {
fn from(e: std::io::Error) -> Self {
let msg = match dbg!(e.kind()) {
let msg = match e.kind() {
io::ErrorKind::NotFound | io::ErrorKind::Other => {
format!("OSError: Path not found: {}", e)
}

View File

@ -132,7 +132,7 @@ impl Builtins {
}
#[cfg(not(target_os = "windows"))]
{
Ok(dbg!(normalized.canonicalize()?))
Ok(normalized.canonicalize()?)
}
}

View File

@ -726,15 +726,12 @@ where
fn op_field(&mut self) -> Result<(), Error> {
// Add a Composite field value to a tuple on the stack
// get value from stack
//dbg!(&self.stack);
let (val, val_pos) = self.pop()?;
// get name from stack.
let (name_val, name_pos) = self.pop()?;
let name = if let &S(ref s) | &P(Str(ref s)) = name_val.as_ref() {
s
} else {
dbg!(name_val);
dbg!(val);
unreachable!();
};
// get composite tuple from stack
@ -845,7 +842,7 @@ where
}
&C(List(ref elems, _)) => {
for e in elems {
if dbg!(e) == &right {
if e == &right {
self.push(Rc::new(P(Bool(true))), pos)?;
return Ok(());
}