$it: add conversion from Int for external commands (#1218)

This commit is contained in:
Koenraad Verheyden 2020-01-14 00:57:44 +01:00 committed by Andrés N. Robalino
parent 2ab5803f00
commit 98028433ad

View File

@ -80,6 +80,10 @@ async fn run_with_iterator_arg(
let input_strings = inputs
.iter()
.map(|i| match i {
Value {
value: UntaggedValue::Primitive(Primitive::Int(i)),
..
} => Ok(i.to_string()),
Value {
value: UntaggedValue::Primitive(Primitive::String(s)),
..