Is it rude to tell friends/family not to feed my child sugary/chocolate snacks?

I’ve noticed people feeding my toddler where they assume it’s ok? I tell them politely what I feel is best to feed and not feed my child but they carry on?! I don’t like it when my toddler eats food high in sugar anyway, especially before bedtime but how can I explain to them not to feed without my permission? As a parent I would never do this and will respect their decision 😕