1 // rustfmt-max_width: 80
3 // We would like to surround closure body with block when overflowing the last
4 // argument of function call if the last argument has condition and without
5 // block it may go multi lines.
7 refmut_map_result(self.cache.borrow_mut(), |cache| {
8 match cache.entry(cache_key) {
9 Occupied(entry) => Ok(entry.into_mut()),
12 let sql = try!(entry.key().sql(source));
16 Ok(entry.insert(try!(statement)))
20 .map(MaybeCached::Cached)