mirror of
https://github.com/Devolutions/IronRDP.git
synced 2025-08-04 15:18:17 +00:00
![]() Hiding the lifetimes is making the code less obvious. That’s not a problem for types that I know about intimately such as `ReadCursor` or `WriteCursor`, but I actually found myself surprised more than once when reading code I didn’t authored, discovering later there was in fact a hidden lifetime parameter. I expect this problem to be worse for someone not familiar with our codebase. I understand this lint is "allow" by default because in some cases it leads to writing unergonomic ugly code when a type has many generic lifetimes parameters: ``` TyCtxt<'_, '_, '_> ``` However we _never_ work with more than one generic lifetime parameter in IronRDP codebase, so it seems to me that the tradeoff towards clarity is worth it, in our case. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |