mirror of
https://gitee.com/openharmony/third_party_rust_nom
synced 2024-11-23 07:29:54 +00:00
incomplete in consumer
This commit is contained in:
parent
744f489f3e
commit
077d1c1bdb
@ -59,7 +59,7 @@ use internal::Err;
|
||||
#[derive(Debug,PartialEq,Eq,Copy)]
|
||||
pub enum ConsumerState {
|
||||
Await,
|
||||
//Incomplete,
|
||||
Incomplete,
|
||||
ConsumerDone,
|
||||
ConsumerError(Err)
|
||||
}
|
||||
@ -111,6 +111,9 @@ pub trait Consumer {
|
||||
println!("await");
|
||||
acc.clear();
|
||||
//acc.push_all(i);
|
||||
},
|
||||
Incomplete => {
|
||||
println!("incomplete");
|
||||
}
|
||||
}
|
||||
if eof { self.end(); }
|
||||
|
Loading…
Reference in New Issue
Block a user