aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDirk Van Haerenborgh <vhdirk@gmail.com>2019-10-25 10:00:28 +0200
committerDirk Van Haerenborgh <vhdirk@gmail.com>2019-10-25 10:00:28 +0200
commit03461235f381df7b22caa1bf8d1afac57079b189 (patch)
tree02a7f768461766fb8c0ac5fe5d603aa996b5f82c
parent9d3eaa7aa7e2be84e150075fb12e97083d7c61f8 (diff)
downloadmail-03461235f381df7b22caa1bf8d1afac57079b189.tar.gz
limit visibility of 'from_ptr' functions to crate
-rw-r--r--src/filenames.rs2
-rw-r--r--src/index.rs2
-rw-r--r--src/message_properties.rs1
-rw-r--r--src/tags.rs2
-rw-r--r--src/thread.rs2
-rw-r--r--src/threads.rs2
6 files changed, 5 insertions, 6 deletions
diff --git a/src/filenames.rs b/src/filenames.rs
index a4440d3..12e5857 100644
--- a/src/filenames.rs
+++ b/src/filenames.rs
@@ -30,7 +30,7 @@ impl<'o, O> Filenames<'o, O>
where
O: FilenamesOwner + 'o,
{
- pub fn from_ptr<P>(ptr: *mut ffi::notmuch_filenames_t, owner: P) -> Filenames<'o, O>
+ pub(crate) fn from_ptr<P>(ptr: *mut ffi::notmuch_filenames_t, owner: P) -> Filenames<'o, O>
where
P: Into<ScopedPhantomcow<'o, O>>,
{
diff --git a/src/index.rs b/src/index.rs
index a672dfb..ba89c1a 100644
--- a/src/index.rs
+++ b/src/index.rs
@@ -23,7 +23,7 @@ impl<'d> Drop for IndexOpts<'d> {
}
impl<'d> IndexOpts<'d> {
- pub fn from_ptr<O>(ptr: *mut ffi::notmuch_indexopts_t, owner: O) -> IndexOpts<'d>
+ pub(crate) fn from_ptr<O>(ptr: *mut ffi::notmuch_indexopts_t, owner: O) -> IndexOpts<'d>
where
O: Into<ScopedPhantomcow<'d, Database>>,
{
diff --git a/src/message_properties.rs b/src/message_properties.rs
index 2c2ceb0..4802383 100644
--- a/src/message_properties.rs
+++ b/src/message_properties.rs
@@ -5,7 +5,6 @@ use supercow::Supercow;
use ffi;
use Message;
use MessageOwner;
-use MessageExt;
use utils::{ScopedSupercow, ScopedPhantomcow};
diff --git a/src/tags.rs b/src/tags.rs
index ad8e421..3fb1613 100644
--- a/src/tags.rs
+++ b/src/tags.rs
@@ -28,7 +28,7 @@ impl<'o, O> Tags<'o, O>
where
O: TagsOwner + 'o,
{
- pub fn from_ptr<P>(ptr: *mut ffi::notmuch_tags_t, owner: P) -> Tags<'o, O>
+ pub(crate) fn from_ptr<P>(ptr: *mut ffi::notmuch_tags_t, owner: P) -> Tags<'o, O>
where
P: Into<ScopedPhantomcow<'o, O>>,
{
diff --git a/src/thread.rs b/src/thread.rs
index 9634a57..34cebd3 100644
--- a/src/thread.rs
+++ b/src/thread.rs
@@ -33,7 +33,7 @@ impl<'d, 'q> Thread<'d, 'q>
where
'd: 'q
{
- pub fn from_ptr<P>(ptr: *mut ffi::notmuch_thread_t, owner: P) -> Thread<'d, 'q>
+ pub(crate) fn from_ptr<P>(ptr: *mut ffi::notmuch_thread_t, owner: P) -> Thread<'d, 'q>
where
P: Into<ScopedPhantomcow<'q, Query<'d>>>,
{
diff --git a/src/threads.rs b/src/threads.rs
index 0359e20..9adb2c5 100644
--- a/src/threads.rs
+++ b/src/threads.rs
@@ -28,7 +28,7 @@ impl<'d, 'q> Threads<'d, 'q>
where
'd: 'q,
{
- pub fn from_ptr<P>(ptr: *mut ffi::notmuch_threads_t, owner: P) -> Threads<'d, 'q>
+ pub(crate) fn from_ptr<P>(ptr: *mut ffi::notmuch_threads_t, owner: P) -> Threads<'d, 'q>
where
P: Into<ScopedPhantomcow<'q, Query<'d>>>,
{