Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API changes and cleanups (obsoletes #80) #81

Closed
wants to merge 10 commits into from
Prev Previous commit
Next Next commit
Move body module
  • Loading branch information
duesee committed Mar 28, 2020
commit a7f6d14ae28d6c96c9bd43ada20892e9580180f5
3 changes: 1 addition & 2 deletions imap-proto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ extern crate assert_matches;
#[macro_use]
mod macros;

pub mod body;
pub mod body_structure;
pub mod builders;
mod parser;
pub mod types;

pub use crate::parser::{core, parse_response, resp_metadata, ParseResult};
pub use crate::parser::{core, body, parse_response, resp_metadata, ParseResult};
pub use crate::types::*;

use std::borrow::Cow;
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion imap-proto/src/parser/rfc3501/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ use crate::parser::{ParseResult, rfc4551};
use crate::parser::rfc5464::resp_metadata;
use crate::types::*;
use crate::parser::core::*;
use crate::body::*;
use crate::parser::body::*;
use crate::body_structure::*;

pub mod body;

fn is_tag_char(c: u8) -> bool {
c != b'+' && is_astring_char(c)
Expand Down