Skip to content

Commit ee85007

Browse files
Christian KoopmannChristian Koopmann
authored andcommitted
Add reference to source for run_guarded function
1 parent a0731bc commit ee85007

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ch6/ch6-particles/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ struct ReportingAllocator; // <7>
1818
//
1919
//
2020
/// Execute a closure without logging on allocations.
21+
/// Source: https://github.com/andrewhickman/logging-allocator/blob/master/src/lib.rs#L42-L57
2122
pub fn run_guarded<F>(f: F)
2223
where
2324
F: FnOnce(),

0 commit comments

Comments
 (0)