mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
MAINT: more dbg cleanup
This commit is contained in:
parent
db610c56f9
commit
9df7eb7cd7
@ -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)
|
||||
}
|
||||
|
@ -132,7 +132,7 @@ impl Builtins {
|
||||
}
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
{
|
||||
Ok(dbg!(normalized.canonicalize()?))
|
||||
Ok(normalized.canonicalize()?)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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(());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user