fix build err

fix compile error with newer version of Rust