Is there a reason you use a slice assignment here that I'm not seeing? Usually it's to not break references, but that doesn't appear to be an issue.