New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust: Add dbg! macro snippet 'd' #1109

Merged
merged 1 commit into from Jan 27, 2019

Conversation

Projects
None yet
2 participants
@phansch
Copy link
Contributor

phansch commented Jan 27, 2019

This was added with Rust 1.32 and is super useful compared to doing
just print! debugging.

See https://blog.rust-lang.org/2019/01/17/Rust-1.32.0.html#the-dbg-macro
for examples.

@lpil

This comment has been minimized.

Copy link
Collaborator

lpil commented Jan 27, 2019

What would you think of a trigger of d?

Rust: Add dbg! macro snippet 'db'
This was added with Rust 1.32 and is super useful compared to doing
just `print!` debugging.

See https://blog.rust-lang.org/2019/01/17/Rust-1.32.0.html#the-dbg-macro
for examples.

@phansch phansch force-pushed the phansch:add_dbg_macro_snippet branch from 5fd1a43 to e230174 Jan 27, 2019

@phansch

This comment has been minimized.

Copy link
Contributor Author

phansch commented Jan 27, 2019

I was originally going with dbg as a trigger but found it difficult to type fast, so I used db.
d is even better 👍

@lpil

lpil approved these changes Jan 27, 2019

Copy link
Collaborator

lpil left a comment

Thanks :)

@lpil lpil merged commit 54e76dd into honza:master Jan 27, 2019

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@phansch phansch deleted the phansch:add_dbg_macro_snippet branch Jan 27, 2019

@phansch

This comment has been minimized.

Copy link
Contributor Author

phansch commented Jan 27, 2019

Thank you for the fast response 👍

@phansch phansch changed the title Rust: Add dbg! macro snippet 'db' Rust: Add dbg! macro snippet 'd' Jan 27, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment