diff options
| author | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2019-10-25 10:05:05 +0200 |
|---|---|---|
| committer | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2019-10-25 10:05:05 +0200 |
| commit | 422377021f9a15b30d297b6ead7864098d5b2c2d (patch) | |
| tree | 7a0fb73119ebc0d491c6596ba0fe16f862b0ebf7 | |
| parent | 03461235f381df7b22caa1bf8d1afac57079b189 (diff) | |
| download | mail-422377021f9a15b30d297b6ead7864098d5b2c2d.tar.gz | |
remove 'get_' from getter functions
| -rw-r--r-- | src/database.rs | 12 | ||||
| -rw-r--r-- | src/index.rs | 2 | ||||
| -rw-r--r-- | src/message.rs | 6 |
3 files changed, 10 insertions, 10 deletions
diff --git a/src/database.rs b/src/database.rs index 089976d..53ba76b 100644 --- a/src/database.rs +++ b/src/database.rs @@ -219,9 +219,9 @@ impl Database { <Self as DatabaseExt>::directory(self, path) } - pub fn get_config_list<'d>(&'d self, prefix: &str) -> Result<ConfigList<'d>> + pub fn config_list<'d>(&'d self, prefix: &str) -> Result<ConfigList<'d>> { - <Self as DatabaseExt>::get_config_list(self, prefix) + <Self as DatabaseExt>::config_list(self, prefix) } pub fn create_query<'d>(&'d self, query_string: &str) -> Result<Query<'d>> { @@ -250,9 +250,9 @@ impl Database { <Self as DatabaseExt>::remove_message(self, path) } - pub fn get_default_indexopts<'d, P>(&'d self) -> Result<IndexOpts<'d>> + pub fn default_indexopts<'d, P>(&'d self) -> Result<IndexOpts<'d>> { - <Self as DatabaseExt>::get_default_indexopts(self) + <Self as DatabaseExt>::default_indexopts(self) } pub fn index_file<'d, P>(&'d self, path: &P, indexopts: Option<IndexOpts<'d>>) -> Result<Message<'d, Self>> @@ -316,7 +316,7 @@ pub trait DatabaseExt { } } - fn get_config_list<'d, D>(database: D, prefix: &str) -> Result<ConfigList<'d>> + fn config_list<'d, D>(database: D, prefix: &str) -> Result<ConfigList<'d>> where D: Into<ScopedSupercow<'d, Database>> { @@ -388,7 +388,7 @@ pub trait DatabaseExt { } } - fn get_default_indexopts<'d, D>(database: D) -> Result<IndexOpts<'d>> + fn default_indexopts<'d, D>(database: D) -> Result<IndexOpts<'d>> where D: Into<ScopedSupercow<'d, Database>> { diff --git a/src/index.rs b/src/index.rs index ba89c1a..f070020 100644 --- a/src/index.rs +++ b/src/index.rs @@ -37,7 +37,7 @@ impl<'d> IndexOpts<'d> { unsafe { ffi::notmuch_indexopts_set_decrypt_policy(self.ptr, decrypt_policy.into()) }.as_result() } - pub fn get_decrypt_policy(self: &Self) -> DecryptionPolicy { + pub fn decrypt_policy(self: &Self) -> DecryptionPolicy { unsafe { ffi::notmuch_indexopts_get_decrypt_policy(self.ptr)}.into() } } diff --git a/src/message.rs b/src/message.rs index b4eacc8..feafcb3 100644 --- a/src/message.rs +++ b/src/message.rs @@ -133,9 +133,9 @@ where unsafe { ffi::notmuch_message_thaw(self.ptr) }.as_result() } - pub fn get_properties<'m>(&'m self, key: &str, exact: bool) -> MessageProperties<'m, 'o, O> + pub fn properties<'m>(&'m self, key: &str, exact: bool) -> MessageProperties<'m, 'o, O> { - <Self as MessageExt<'o, O>>::get_properties(self, key, exact) + <Self as MessageExt<'o, O>>::properties(self, key, exact) } } @@ -176,7 +176,7 @@ where ) } - fn get_properties<'m, M>(message: M, key: &str, exact: bool) -> MessageProperties<'m, 'o, O> + fn properties<'m, M>(message: M, key: &str, exact: bool) -> MessageProperties<'m, 'o, O> where M: Into<ScopedSupercow<'m, Message<'o, O>>>, { |
