MAINT: Cleaning up some warnings.

This commit is contained in:
Jeremy Wall 2019-08-17 13:10:15 -05:00
parent 3dd0cc6794
commit 4ba4355d37
2 changed files with 13 additions and 13 deletions

View File

@ -337,11 +337,11 @@ impl Builtins {
// TODO(jwall): This can also be tuples or strings. // TODO(jwall): This can also be tuples or strings.
let elems = match list.as_ref() { let elems = match list.as_ref() {
&C(List(ref elems)) => elems, &C(List(ref elems)) => elems,
&C(Tuple(ref flds)) => { &C(Tuple(ref _flds)) => {
unimplemented!("Tuple functional operations"); unimplemented!("TODO Tuple functional operations");
} }
&P(Str(ref s)) => { &P(Str(ref _s)) => {
unimplemented!("string functional operations"); unimplemented!("TODO String functional operations");
} }
_ => return Err(dbg!(Error {})), _ => return Err(dbg!(Error {})),
}; };
@ -394,11 +394,11 @@ impl Builtins {
// TODO(jwall): This can also be tuples or strings. // TODO(jwall): This can also be tuples or strings.
let elems = match list.as_ref() { let elems = match list.as_ref() {
&C(List(ref elems)) => elems, &C(List(ref elems)) => elems,
&C(Tuple(ref flds)) => { &C(Tuple(ref _flds)) => {
unimplemented!("Tuple functional operations"); unimplemented!("TODO Tuple functional operations");
} }
&P(Str(ref s)) => { &P(Str(ref _s)) => {
unimplemented!("string functional operations"); unimplemented!("TODO String functional operations");
} }
_ => return Err(dbg!(Error {})), _ => return Err(dbg!(Error {})),
}; };
@ -483,11 +483,11 @@ impl Builtins {
// TODO(jwall): This can also be tuples or strings. // TODO(jwall): This can also be tuples or strings.
let elems = match list.as_ref() { let elems = match list.as_ref() {
&C(List(ref elems)) => elems, &C(List(ref elems)) => elems,
&C(Tuple(ref flds)) => { &C(Tuple(ref _flds)) => {
unimplemented!("Tuple functional operations"); unimplemented!("TODO Tuple functional operations");
} }
&P(Str(ref s)) => { &P(Str(ref _s)) => {
unimplemented!("string functional operations"); unimplemented!("TODO String functional operations");
} }
_ => return Err(dbg!(Error {})), _ => return Err(dbg!(Error {})),
}; };

View File

@ -615,7 +615,7 @@ where
} }
}; };
if safe { if safe {
self.push(Rc::new(P(Empty))); self.push(Rc::new(P(Empty)))?;
return Ok(()); return Ok(());
} }
return Err(dbg!(Error {})); return Err(dbg!(Error {}));