update for language changes

Syntax adaptation with newer Rust