Skip to content

Commit cd91d9d

Browse files
Daniel SalinasDaniel Salinas
authored andcommitted
Make constructor return Arc properly
1 parent 83653a4 commit cd91d9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bindings/matrix-sdk-ffi/src/session_store.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ mod sqlite_session_store {
5555
/// capable of handling multiple users, however it is valid to use the
5656
/// same path for both stores on a single session.
5757
#[uniffi::constructor]
58-
pub fn new(data_path: String, cache_path: String) -> Self {
59-
Self {
58+
pub fn new(data_path: String, cache_path: String) -> Arc<Self> {
59+
Arc::new(Self {
6060
paths: SessionPaths { data_path, cache_path },
6161
passphrase: Zeroizing::new(None),
6262
pool_max_size: None,
6363
cache_size: None,
6464
journal_size_limit: None,
6565
system_is_memory_constrained: false,
66-
}
66+
})
6767
}
6868

6969
/// Set the passphrase for the stores given to

0 commit comments

Comments
 (0)