naure
034275c6e2
Rust: Fix lifetime in union _as_ accessors ( #5140 )
...
* Fix lifetime in union _as_ accessors
In the accessors for union field, the return value is implicitly taking the lifetime of &self.
This is irrelevant and prevents usages of the returned value, because it is needlessly bound to the parent field lifetime.
This patch makes the return value inherit the lifetime of the data, like other methods do.
2019-02-26 23:48:54 -08:00
..
2019-01-16 16:41:02 -08:00
2019-02-21 23:36:55 +01:00
2019-02-21 23:36:55 +01:00
2018-11-16 09:24:06 -08:00
2018-10-29 17:40:19 -07:00
2019-02-25 23:45:29 +01:00
2019-02-25 23:45:29 +01:00
2018-03-05 08:45:25 -08:00
2019-02-07 14:51:04 -08:00
2019-02-25 23:45:29 +01:00
2018-08-09 09:50:54 -07:00
2019-02-25 23:45:29 +01:00
2019-02-25 23:45:29 +01:00
2018-12-27 20:57:19 -05:00
2018-12-27 20:57:19 -05:00
2019-01-14 09:21:42 -08:00
2017-05-24 16:26:57 -07:00
2017-08-11 09:24:36 -07:00
2019-02-21 19:50:13 +01:00
2019-02-07 14:51:04 -08:00
2019-02-21 19:50:13 +01:00
2019-02-21 19:50:13 +01:00
2018-07-29 13:23:00 -07:00
2018-07-05 15:55:57 -07:00
2018-07-05 15:55:57 -07:00
2019-01-14 09:23:42 -08:00
2019-01-14 09:23:42 -08:00
2019-02-07 14:51:04 -08:00
2019-02-15 01:00:33 +01:00
2019-02-07 14:51:04 -08:00
2019-02-26 23:48:54 -08:00
2019-02-07 14:51:04 -08:00
2018-09-21 09:42:43 -07:00
2018-10-22 15:41:12 -07:00
2018-11-05 14:33:36 -08:00
2019-02-07 14:51:04 -08:00
2019-02-07 14:51:04 -08:00
2018-11-29 10:33:17 -08:00
2018-11-29 10:33:17 -08:00
2018-11-05 14:33:36 -08:00
2019-02-07 14:51:04 -08:00
2018-10-15 16:55:59 -07:00
2018-10-15 16:55:59 -07:00
2019-02-07 14:51:04 -08:00
2018-10-15 16:55:59 -07:00
2017-08-11 09:24:36 -07:00
2017-08-11 09:24:36 -07:00
2019-02-07 14:51:04 -08:00
2017-05-24 16:26:57 -07:00
2018-10-31 18:08:14 -07:00
2018-10-31 18:08:14 -07:00
2019-01-24 13:30:11 -08:00
2019-02-19 10:49:55 -08:00
2018-10-18 10:32:59 -07:00
2019-02-05 02:07:05 +01:00
2019-02-19 20:22:25 +01:00
2018-10-03 12:27:27 -07:00
2017-08-11 09:24:36 -07:00
2018-05-03 12:10:45 -07:00