fixed lib to reflect changes in Rust