summaryrefslogtreecommitdiff
path: root/dhall/src/syntax
diff options
context:
space:
mode:
authorCeri Storey2021-03-27 10:47:00 +0000
committerCeri Storey2021-04-03 13:56:49 +0100
commit1cbee42df4868a92de5b18a174592497d451a814 (patch)
tree13c3bd8178230c2bcb947a6989a78a3aff3bd961 /dhall/src/syntax
parent6053e48575cf3b421f3eb8a6af33c853a518d9c9 (diff)
Avoid ambiguity from use of Itertools::intersperse.
Diffstat (limited to 'dhall/src/syntax')
-rw-r--r--dhall/src/syntax/text/parser.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/dhall/src/syntax/text/parser.rs b/dhall/src/syntax/text/parser.rs
index 07921b5..d17ac61 100644
--- a/dhall/src/syntax/text/parser.rs
+++ b/dhall/src/syntax/text/parser.rs
@@ -279,9 +279,7 @@ impl DhallParser {
trim_indent(&mut lines);
- lines
- .into_iter()
- .intersperse(newline)
+ Itertools::intersperse(lines.into_iter(), newline)
.flat_map(InterpolatedText::into_iter)
.collect::<ParsedText>()
}