Skip to content

Commit 7b1530a

Browse files
committed
Remove unnecessary clone
Signed-off-by: Piotr Jastrzebski <[email protected]>
1 parent 9ce06b7 commit 7b1530a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libsql/src/replication/remote_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ impl RemoteClient {
8989
) -> Result<bool, Error> {
9090
let hello = hello?.into_inner();
9191
verify_session_token(&hello.session_token).map_err(Error::Client)?;
92-
let new_session = self.session_token != Some(hello.session_token.clone());
92+
let new_session = self.session_token.as_ref() != Some(&hello.session_token);
9393
self.session_token = Some(hello.session_token.clone());
9494
let current_replication_index = hello.current_replication_index;
9595
if let Err(e) = self.meta.init_from_hello(hello) {

0 commit comments

Comments
 (0)