mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
fix some clippy::wrong_self_convention
This commit is contained in:
parent
ad464c4779
commit
fc73911cde
3 changed files with 15 additions and 13 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue