(homepage: String)
| 6 | impl BrowserHistory { |
| 7 | |
| 8 | fn new(homepage: String) -> Self { |
| 9 | BrowserHistory { |
| 10 | his: vec![homepage.clone()], |
| 11 | idx: 0 |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | fn visit(&mut self, url: String) { |
| 16 | self.his.truncate(self.idx + 1); |
nothing calls this directly
no outgoing calls
no test coverage detected