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 {
|
impl From<std::io::Error> for Error {
|
||||||
fn from(e: std::io::Error) -> Self {
|
fn from(e: std::io::Error) -> Self {
|
||||||
let msg = match dbg!(e.kind()) {
|
let msg = match e.kind() {
|
||||||
io::ErrorKind::NotFound | io::ErrorKind::Other => {
|
io::ErrorKind::NotFound | io::ErrorKind::Other => {
|
||||||
format!("OSError: Path not found: {}", e)
|
format!("OSError: Path not found: {}", e)
|
||||||
}
|
}
|
||||||
|
@ -132,7 +132,7 @@ impl Builtins {
|
|||||||
}
|
}
|
||||||
#[cfg(not(target_os = "windows"))]
|
#[cfg(not(target_os = "windows"))]
|
||||||
{
|
{
|
||||||
Ok(dbg!(normalized.canonicalize()?))
|
Ok(normalized.canonicalize()?)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -726,15 +726,12 @@ where
|
|||||||
fn op_field(&mut self) -> Result<(), Error> {
|
fn op_field(&mut self) -> Result<(), Error> {
|
||||||
// Add a Composite field value to a tuple on the stack
|
// Add a Composite field value to a tuple on the stack
|
||||||
// get value from stack
|
// get value from stack
|
||||||
//dbg!(&self.stack);
|
|
||||||
let (val, val_pos) = self.pop()?;
|
let (val, val_pos) = self.pop()?;
|
||||||
// get name from stack.
|
// get name from stack.
|
||||||
let (name_val, name_pos) = self.pop()?;
|
let (name_val, name_pos) = self.pop()?;
|
||||||
let name = if let &S(ref s) | &P(Str(ref s)) = name_val.as_ref() {
|
let name = if let &S(ref s) | &P(Str(ref s)) = name_val.as_ref() {
|
||||||
s
|
s
|
||||||
} else {
|
} else {
|
||||||
dbg!(name_val);
|
|
||||||
dbg!(val);
|
|
||||||
unreachable!();
|
unreachable!();
|
||||||
};
|
};
|
||||||
// get composite tuple from stack
|
// get composite tuple from stack
|
||||||
@ -845,7 +842,7 @@ where
|
|||||||
}
|
}
|
||||||
&C(List(ref elems, _)) => {
|
&C(List(ref elems, _)) => {
|
||||||
for e in elems {
|
for e in elems {
|
||||||
if dbg!(e) == &right {
|
if e == &right {
|
||||||
self.push(Rc::new(P(Bool(true))), pos)?;
|
self.push(Rc::new(P(Bool(true))), pos)?;
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user