Fix TreeView example

Due to [this change](https://github.com/rust-lang/rust/commit/85914df05a95b1d14e483b69d9c4f0eba44b5d25), slices must be explicitly borrowed.