Skip to content

Commit fa5e871

Browse files
Use '#?' for rust debugging string
1 parent a2be08b commit fa5e871

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ftplugin/rust.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function! s:DebugStringFunBase(desc, var)
2-
let l:debug_str = 'println!("' . a:desc . '{}", ' . a:var . ');'
2+
let l:debug_str = 'println!("' . a:desc . '{:#?}", ' . a:var . ');'
33
return l:debug_str
44
endfunc
55

test/ft/a.rust

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
println!("[[Vader-workbench]:$1$] DEBUGGING STRING ==> {}", $2$);
2-
println!("a**2 + b**2: {}", a**2 + b**2);
1+
println!("[[Vader-workbench]:$1$] DEBUGGING STRING ==> {:#?}", $2$);
2+
println!("a**2 + b**2: {:#?}", a**2 + b**2);

0 commit comments

Comments
 (0)