Rust oneliner
rust\npub fn max_power(s: String) -> i32 {\n    s.as_bytes()\n        .windows(2)\n        .fold((1, 1), |(curr, max), win| {\n            let curr = if win[0] 
```rust\npub fn max_power(s: String) -> i32 {\n    s.as_bytes()\n        .windows(2)\n        .fold((1, 1), |(curr, max), win| {\n            let curr = if win[0] == win[1] { curr + 1 } else { 1 };\n            (curr, std::cmp::max(curr, max))\n        })\n        .1\n}\n```
[]