summaryrefslogtreecommitdiff
path: root/src/cmd.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd.rs')
-rw-r--r--src/cmd.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd.rs b/src/cmd.rs
index 240c489..308cc5f 100644
--- a/src/cmd.rs
+++ b/src/cmd.rs
@@ -4,22 +4,22 @@ use maildir::Maildir;
mod count;
mod folders;
+mod list;
mod move_mail;
mod raw;
mod read;
-mod list;
mod remove;
pub use count::count;
pub use folders::folders;
+pub use list::list;
pub use move_mail::move_mail;
pub use raw::raw;
pub use read::read;
-pub use list::list;
pub use remove::remove;
pub fn open_submaildir(mut path: PathBuf, sub: &str) -> Maildir {
- if sub != "" {
+ if !sub.is_empty() {
path.push(String::from(".") + sub);
}
Maildir::from(path)