mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 14:15:53 +02:00
error parsing for def, alias and let
This commit is contained in:
@ -48,3 +48,15 @@ impl Block {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> From<T> for Block
|
||||
where
|
||||
T: Iterator<Item = Statement>,
|
||||
{
|
||||
fn from(stmts: T) -> Self {
|
||||
Self {
|
||||
signature: Box::new(Signature::new("")),
|
||||
stmts: stmts.collect(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user