Fixed errors related to the latest Rust