From e7d68e85144b907198107d7970770eedc4f00a62 Mon Sep 17 00:00:00 2001 From: Bazaah Date: Thu, 9 Sep 2021 12:14:50 +0000 Subject: [PATCH] scanner/error: add variant Extend This variant suggests to the caller that they should extend the byte stream before calling the Scanner again. --- src/scanner/error.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/scanner/error.rs b/src/scanner/error.rs index 73ceb9c..a89773b 100644 --- a/src/scanner/error.rs +++ b/src/scanner/error.rs @@ -72,6 +72,10 @@ pub enum ScanError /// An integer overflowed IntOverflow, + + /// The underlying buffer should be extended before + /// calling the Scanner again + Extend, } impl fmt::Display for ScanError