aboutsummaryrefslogtreecommitdiffstats
path: root/src/message.rs
diff options
context:
space:
mode:
authoreaon <eaon@mit.edu>2018-12-09 18:48:24 +0100
committereaon <eaon@mit.edu>2018-12-09 18:54:41 +0100
commitb5b0f7e97abe0dbd5b54a1fc69e764a124c271b2 (patch)
tree54c4add85514a3ccb718985682b7c8312c4a5128 /src/message.rs
parentc3d26cd116b51687b2fa43a22d3d0c2856cb093b (diff)
downloadmail-b5b0f7e97abe0dbd5b54a1fc69e764a124c271b2.tar.gz
Edition 2018 hit stable 🙌
Diffstat (limited to 'src/message.rs')
-rw-r--r--src/message.rs26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/message.rs b/src/message.rs
index 6feffde..52ff63c 100644
--- a/src/message.rs
+++ b/src/message.rs
@@ -3,15 +3,15 @@ use std::ops::Drop;
use std::path::PathBuf;
use supercow::{Phantomcow, Supercow};
-use error::{Error, Result};
-use ffi;
-use utils::ToStr;
-use Filenames;
-use FilenamesOwner;
-use Messages;
-use MessagesOwner;
-use Tags;
-use TagsOwner;
+use crate::error::{Error, Result};
+use crate::ffi;
+use crate::utils::ToStr;
+use crate::Filenames;
+use crate::FilenamesOwner;
+use crate::Messages;
+use crate::MessagesOwner;
+use crate::Tags;
+use crate::TagsOwner;
pub trait MessageOwner {}
@@ -29,7 +29,7 @@ impl Drop for MessagePtr {
#[derive(Debug)]
pub struct Message<'o, O>
where
- O: MessageOwner + 'o,
+ O: MessageOwner,
{
pub(crate) handle: MessagePtr,
marker: Phantomcow<'o, O>,
@@ -63,7 +63,7 @@ where
tid.to_str().unwrap().to_string()
}
- pub fn replies(self: &Self) -> Messages<Self> {
+ pub fn replies(self: &Self) -> Messages<'_, Self> {
<Self as MessageExt<'o, O>>::replies(self)
}
@@ -72,7 +72,7 @@ where
unsafe { ffi::notmuch_message_count_files(self.handle.ptr) }
}
- pub fn filenames(self: &Self) -> Filenames<Self> {
+ pub fn filenames(self: &Self) -> Filenames<'_, Self> {
<Self as MessageExt<'o, O>>::filenames(self)
}
@@ -101,7 +101,7 @@ where
}
}
- pub fn tags(&self) -> Tags<Self> {
+ pub fn tags(&self) -> Tags<'_, Self> {
<Self as MessageExt<'o, O>>::tags(self)
}