()
| 10 | |
| 11 | impl MyStruct { |
| 12 | fn new() -> Self { |
| 13 | Self { |
| 14 | mu: Mutex::new(true), |
| 15 | rw1: RwLock::new(1), |
| 16 | rw2: RwLock::new(1), |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | fn mu_rw1(&self) -> i32 { |
| 21 | let mu = self.mu.lock().unwrap(); |
nothing calls this directly
no outgoing calls
no test coverage detected