Where was Hastings formerly the governor