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

View File

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