We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3024aa3 commit b3eb77cCopy full SHA for b3eb77c
bytes/src/lib.rs
@@ -283,7 +283,6 @@ pub mod arc {
283
/// shared4.try_merge(shared2).ok().expect("Failed to merge 4 and 231");
284
/// ```
285
pub fn try_merge(&mut self, other: Bytes) -> Result<(), Bytes> {
286
- use ::std::sync::Arc;
287
if Arc::ptr_eq(&self.sequestered, &other.sequestered) && ::std::ptr::eq(unsafe { self.ptr.offset(self.len as isize) }, other.ptr) {
288
self.len += other.len;
289
Ok(())
0 commit comments