Closed 01mf02 closed 1 year ago
Yes, self.lines.get(idx)
would work. I can try to find time to patch this late this week. Alternatively, I'm happy to accept a PR :)
Done. :)
When will this be released? Thanks!
When will this be released? Thanks!
I've just released 0.4.0
, which includes this fix.
I am using ariadne inside jaq, in particular here. When supplying jaq with an empty input (see https://github.com/01mf02/jaq/issues/4), it gives the following output:
In the current Git version of ariadne, this is here: https://github.com/zesterer/ariadne/blob/b2d478b2b3a5fe3f14ce9cfab165be1b0fe5934a/src/source.rs#L159
Would it work to use
self.lines.get(idx)?
instead?