rust windows
\npub struct Solution {}\n\nimpl Solution {\n    pub fn find_length_of_lcis(nums: Vec<i32>) -> i32 {\n        let mut max = 0;\n        let accum = nums\n      
```\npub struct Solution {}\n\nimpl Solution {\n    pub fn find_length_of_lcis(nums: Vec<i32>) -> i32 {\n        let mut max = 0;\n        let accum = nums\n            .windows(2)\n            .fold(1, |accum, w| {\n                if w[0] < w[1] {\n                    accum + 1\n                } else {\n                    if accum > max {\n                        max = accum;\n                    }\n                    1\n                }\n            });\n\n        max.max(accum)\n    }\n}\n\n#[cfg(test)]\nmod tests {\n    use super::*;\n\n    #[test]\n    fn test() {\n        assert_eq!(3, Solution::find_length_of_lcis(vec![1,3,5,4,7]));\n        assert_eq!(1, Solution::find_length_of_lcis(vec![1]));\n        assert_eq!(4, Solution::find_length_of_lcis(vec![4,3,1,2,3,4]));\n    }\n}\n```
['Rust']