Migrating to new rust compiler(correction made for previous changes)