Skip to content

Commit 7a0021e

Browse files
committed
Remove DerefMut for SslCipher
Not a breaking change because it's a bug that it existed in the first place.
1 parent 230f167 commit 7a0021e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

boring/src/ssl/mod.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ use std::io;
6969
use std::io::prelude::*;
7070
use std::marker::PhantomData;
7171
use std::mem::{self, ManuallyDrop, MaybeUninit};
72-
use std::ops::{Deref, DerefMut};
72+
use std::ops::Deref;
7373
use std::panic::resume_unwind;
7474
use std::path::Path;
7575
use std::ptr::{self, NonNull};
@@ -2450,12 +2450,6 @@ impl Deref for SslCipher {
24502450
}
24512451
}
24522452

2453-
impl DerefMut for SslCipher {
2454-
fn deref_mut(&mut self) -> &mut SslCipherRef {
2455-
unsafe { SslCipherRef::from_ptr_mut(self.0.as_ptr()) }
2456-
}
2457-
}
2458-
24592453
/// Reference to an [`SslCipher`].
24602454
///
24612455
/// [`SslCipher`]: struct.SslCipher.html

0 commit comments

Comments
 (0)