From 422377021f9a15b30d297b6ead7864098d5b2c2d Mon Sep 17 00:00:00 2001 From: Dirk Van Haerenborgh Date: Fri, 25 Oct 2019 10:05:05 +0200 Subject: remove 'get_' from getter functions --- src/database.rs | 12 ++++++------ src/index.rs | 2 +- src/message.rs | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src') 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 { ::directory(self, path) } - pub fn get_config_list<'d>(&'d self, prefix: &str) -> Result> + pub fn config_list<'d>(&'d self, prefix: &str) -> Result> { - ::get_config_list(self, prefix) + ::config_list(self, prefix) } pub fn create_query<'d>(&'d self, query_string: &str) -> Result> { @@ -250,9 +250,9 @@ impl Database { ::remove_message(self, path) } - pub fn get_default_indexopts<'d, P>(&'d self) -> Result> + pub fn default_indexopts<'d, P>(&'d self) -> Result> { - ::get_default_indexopts(self) + ::default_indexopts(self) } pub fn index_file<'d, P>(&'d self, path: &P, indexopts: Option>) -> Result> @@ -316,7 +316,7 @@ pub trait DatabaseExt { } } - fn get_config_list<'d, D>(database: D, prefix: &str) -> Result> + fn config_list<'d, D>(database: D, prefix: &str) -> Result> where D: Into> { @@ -388,7 +388,7 @@ pub trait DatabaseExt { } } - fn get_default_indexopts<'d, D>(database: D) -> Result> + fn default_indexopts<'d, D>(database: D) -> Result> where D: Into> { 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> { - >::get_properties(self, key, exact) + >::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>>, { -- cgit v1.2.1