I strongly disagree. I don't find it rude at all. In fact I find the idea that you have to get permission to offer code much more rude.

You are free to say "sorry I don't want to do it like this; you've wasted your time". That's totally fine.