ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/cli/examples/custom-operation-templater
Yuya Nishihara 2916bbbec5 templater: allow use of wrap_<type>() functions without borrowing &language
These .wrap_<type>() functions aren't supposed to capture resources from the
language instance. It was convenient that wrap_() could be called without fully
spelling the language type, but doing that would introduce lifetime issue in
later patches.

I added type alias L to several places because the language type is usually
called L in generic code.
2024-03-22 11:51:15 +09:00
..
main.rs templater: allow use of wrap_<type>() functions without borrowing &language 2024-03-22 11:51:15 +09:00