()
| 9 | |
| 10 | impl Foo { |
| 11 | fn new() -> Self { |
| 12 | Self { |
| 13 | inner: Arc::new(RwLock::new(1)), |
| 14 | data: 1, |
| 15 | } |
| 16 | } |
| 17 | fn foo(&self) { |
| 18 | match *self.inner.rl() { |
| 19 | 1 => *self.inner.wl() += 1, |
nothing calls this directly
no outgoing calls
no test coverage detected