(&self, code: u32)
| 8 | } |
| 9 | |
| 10 | pub fn check(&self, code: u32) -> Result<(), String> { |
| 11 | if self.code != code { |
| 12 | return Err("Security code is incorrect".into()); |
| 13 | } |
| 14 | |
| 15 | println!("Security code verified"); |
| 16 | Ok(()) |
| 17 | } |
| 18 | } |
nothing calls this directly
no outgoing calls
no test coverage detected