mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
MAINT: Cleaning up some warnings.
This commit is contained in:
parent
3dd0cc6794
commit
4ba4355d37
@ -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 {})),
|
||||||
};
|
};
|
||||||
|
@ -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 {}));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user