-
-
Notifications
You must be signed in to change notification settings - Fork 40
API changes and cleanups (obsoletes #80) #81
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bunch more nits about the presentation here. Getting closer though! Thanks for sticking with it.
@@ -1,6 +1,4 @@ | |||
use nom::{self, IResult}; | |||
|
|||
use std::str; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we've come to agreement on the removal of the std::str
import?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I forgot it. See last comment.
imap-proto/src/lib.rs
Outdated
|
||
pub mod body; | ||
pub mod body_structure; | ||
// Public API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, but this still has too much going on. Don't do reformatting in the same commit as changing the public API, please, because it's hard for me to review.
imap-proto/src/parser/rfc3501/mod.rs
Outdated
@@ -60,15 +64,15 @@ named!(mailbox<&str>, map!( | |||
|
|||
named!(flag_extension<&str>, map_res!( | |||
recognize!(pair!(tag!("\\"), take_while!(atom_char))), | |||
str::from_utf8 | |||
std::str::from_utf8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also these changes to add std
before str
belong in the other commit if we want them at all.
imap-proto/src/parser/rfc3501/mod.rs
Outdated
@@ -534,7 +534,6 @@ pub fn parse_response(msg: &[u8]) -> ParseResult { | |||
response(msg) | |||
} | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't belong in this commit. Maybe some earlier commit made changes here? Otherwise a separate commit for this is also fine.
(Also feel free to use |
Okay, I further split the changing api commit. I am not sure why, but when I reverted the std::str change, I always ended up in conflicting merge hell. I hope the comment is sufficient. |
So I have taken 7 of your commits, applied minor fixes and pushed them to master. Please try to rebase this branch on master and clean up the commit history. I think I want the following commits:
This really is highly similar to what you've got now, but there's still quite a bit of noise in there. Fixing up the |
Sorry, just to be clear, is there anything left you do not want? Not by means of commit presentation, but the end result? |
I don't think there's anything I don't want here, but it'll be easier to be firm on that once I can review it more closely because it is in a more easily reviewable state. |
Current patches are looking great, would be happy to merge once you clean up the formatting! (You might like this one-liner: |
In fact, I figured I might as well do that for you -- this has been merged. Thanks!! |
No description provided.