return rust snippet