Fix for rust updates

Fixes #246.