update rust snippet