Update code after rust bug fix for 'static.