complete edit rust code