Skip to content

Commit

Permalink
chore: rpt 32 sns
Browse files Browse the repository at this point in the history
  • Loading branch information
encody committed Dec 8, 2023
1 parent e32ea6b commit 1d4530e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/blog/rust-pro-tips-collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ This is a collection of Rust "pro tips" that I've collected, most of which have

## 32. Absolute import paths

[Tweet](https://twitter.com/sudo_build/status/1733063054840262842) [Toot](https://infosec.exchange/@hatchet/111544198990772125)

Use a leading double colon (`::path`) to indicate a path relative to the root of the compilation unit. This can help to avoid name collisions when writing macros.

```rust
Expand Down

0 comments on commit 1d4530e

Please sign in to comment.