Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[rust][photos] Keep the raw connection opener crate-private

laurenspriem1357b3eccbc9
diff --git a/rust/crates/photos/src/db.rs b/rust/crates/photos/src/db.rs
index 27b76fce0d..a5dd23ec69 100644
--- a/rust/crates/photos/src/db.rs
+++ b/rust/crates/photos/src/db.rs
@@ -17,7 +17,7 @@ pub type Result<T> = std::result::Result<T, Error>;
pub struct Connection(rusqlite::Connection);
impl Connection {
- pub fn open(path: impl AsRef<Path>) -> Result<Self> {
+ pub(crate) fn open(path: impl AsRef<Path>) -> Result<Self> {
Ok(Self(rusqlite::Connection::open(path)?))
}