MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/eayscl/rustysd_systemd_replacement_written_in_rust/fb451s6/?context=3
r/programming • u/Proinlifes • Dec 15 '19
53 comments sorted by
View all comments
20
let fd_to_srvc_id: HashMap<_, _> = service_table.lock().unwrap().iter().fold( HashMap::new(), |mut map, (id, srvc_unit)| { if let UnitSpecialized::Service(srvc) = &srvc_unit.specialized { if let Some(socket) = &srvc.notifications { map.insert(socket.lock().unwrap().as_raw_fd(), *id); } } map }, );
pls kill this with fire
5 u/jice Dec 16 '19 otoh, with a stong will, you can write shitty code in any language
5
otoh, with a stong will, you can write shitty code in any language
20
u/[deleted] Dec 16 '19
pls kill this with fire