This is pedantic, but there are lots of people outside of your reporting chain that will probably need to know about you losing your job before you... HR of course, but also IT and facilities, perhaps, if they need to have anything prepared for when you are let go.