My understanding is that when G&S wrote, a Major General was the highest rank achievable.
Grant was a 4 star.