Changed lifetime of closure to `'a`

#40