fix some clippy::wrong_self_convention

This commit is contained in:
Dustin J. Mitchell 2022-02-13 03:37:50 +00:00
parent ad464c4779
commit fc73911cde
3 changed files with 15 additions and 13 deletions

View file

@ -74,6 +74,7 @@ impl TCTask {
/// Make an mutable TCTask into a immutable TCTask. Does nothing if the task
/// is already immutable.
#[allow(clippy::wrong_self_convention)] // to_immut_mut is not better!
fn to_immut(&mut self) {
self.inner = match std::mem::replace(&mut self.inner, Inner::Invalid) {
Inner::Immutable(task) => Inner::Immutable(task),