fix "warning: deprecated syntax, use `for` keyword now"

r? @alexcrichton