Skip to content

Commit aa4607f

Browse files
authored
Merge pull request #34 from saks/master
fix breakage caused by impl From<&String> for String
2 parents 8d934d1 + 0fb4dc8 commit aa4607f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/client/pubsub.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ impl Stream for PubsubStream {
291291

292292
impl Drop for PubsubStream {
293293
fn drop(&mut self) {
294-
self.con.unsubscribe(self.topic.as_ref());
294+
let topic: &str = self.topic.as_ref();
295+
self.con.unsubscribe(topic);
295296
}
296297
}

0 commit comments

Comments
 (0)