···11-#![warn(clippy::all, clippy::pedantic, clippy::perf, clippy::style, clippy::complexity, clippy::suspicious, clippy::correctness)]
22-33-use std::{borrow::Borrow, cell::UnsafeCell, collections::VecDeque, marker::PhantomData, ops::Deref, sync::{atomic::{fence, AtomicU8, Ordering}, Arc}};
11+#![warn(
22+ clippy::all,
33+ clippy::pedantic,
44+ clippy::perf,
55+ clippy::style,
66+ clippy::complexity,
77+ clippy::suspicious,
88+ clippy::correctness
99+)]
41055-use inner::{Ptr, ReadState, Shared};
1111+use std::{
1212+ borrow::Borrow,
1313+ cell::UnsafeCell,
1414+ collections::VecDeque,
1515+ marker::PhantomData,
1616+ ops::Deref,
1717+ sync::{
1818+ atomic::{fence, AtomicU8, Ordering},
1919+ Arc,
2020+ },
2121+};
622723mod inner;
2424+2525+use inner::{Ptr, ReadState, Shared};
826927pub trait Absorb<O> {
1028 /// has to be deterministic. Operations will be applied in the same order to both buffers
···129147 inner.value_1.get_mut().absorb(operation.clone());
130148 inner.value_2.get_mut().absorb(operation);
131149 } else {
132132- self.get_data_mut().absorb(operation.clone());
133133- self.writer.op_buffer.push_back(operation);
150150+ self.writer.op_buffer.push_back(operation.clone());
151151+ self.get_data_mut().absorb(operation);
134152 }
135153 }
136154}
···313331 }
314332}
315333316316-/// This impl is only ok because this is an internal library.
334334+/// This impl is only ok because this is an internal library.
317335/// If one would publish the library it would lead to function name collisions
318336/// If there ever is a internal collision, rename a function or remove this impl
319337impl<T, O> Deref for Writer<T, O> {