Skip to content

Commit 9819135

Browse files
committed
fix(timber): more generic rust variable logs
1 parent 6d5dd96 commit 9819135

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/plugins/timber.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ return {
6969
jsx = templates_js.log.default,
7070
lua = [[print("%print_tag: %filename:%line_number %log_target=" .. vim.inspect(%log_target))]],
7171
python = [[print(f"%print_tag: {%log_target=}")]],
72-
rust = [[println!("%print_tag: %log_target: {%log_target:#?}");]],
72+
rust = [[println!("%print_tag: %log_target: {:#?}", %log_target);]],
7373
tsx = templates_js.log.default,
7474
typescript = templates_js.log.default,
7575
typescriptreact = templates_js.log.default,
@@ -99,7 +99,7 @@ return {
9999
jsx = templates_js.batch.default,
100100
lua = [[print("%print_tag: " .. vim.inspect({ %repeat<["%log_target"] = vim.inspect(%log_target)><, > }))]],
101101
python = [[print(f"%print_tag: %repeat<{%log_target=}><, >")]],
102-
rust = [[println!("%print_tag: %repeat<%log_target: {%log_target:#?}><, >");]],
102+
rust = [[println!("%print_tag: %repeat<%log_target: {:#?}><, >", %log_target);]],
103103
tsx = templates_js.batch.default,
104104
typescript = templates_js.batch.default,
105105
typescriptreact = templates_js.batch.default,

0 commit comments

Comments
 (0)