Jeremy Swayman made 27 saves and Charlie McAvoy assisted on two third-period goals as the Boston Bruins topped the Carolina Hurricanes 2-1.