I have raspberry pi 3 and 2.5A/5V power supply. there are gpio ir sender and ir receiver connected directly to pins
and they work very well both using LIRC software or controlling ir signals.
Each connected to 5v pins as shown in the image below.

original size
http://i.imgur.com/vA8QNuC.png
I am beginner in circuits, resistence and transisters.
I am not sure if this is safe and okay and not damaging rpi? I mean is it okay to output 5v from rpi to one ir sender and ir receiver without using a circuit with resistence or transistor.