Here it is from another angle.
The little bolt that goes through has a hole on the inside which the stay slots into. The little bolt can then be screwed tight, thereby securing the stay.
As can be seen, I hope, there's plenty of tyre clearance.
I think that bit of crap on the mudguard, which I've just noticed, is a piece of dried slug...or something