Closed kurtlawrence closed 5 years ago
Thanks, looks good, just some minor complains.
Hi @Drakulix,
I removed the .vscode
folder, sorry that slipped in there.
Regarding the formatting using rustfmt
, I used the default formatting settings and it has changed more than just my code (mostly splitting where
lines). Did you have any specific formatting settings?
Cheers,
Kurt
I thought, I have a rustfmt config in place, turns out I have not, I just noticed some weird intends in your code.
Thanks for your work, I will take care of the formatting and merge this soon.
Merged manually via #37
Added a thread id output such that the output follows
<time> <level> <thread_id>
.Thread id comes from
std::thread::current().id()
as aThreadId
which, for now, is backed by au64
.I decided to output the id as a number, encased in brackets. I am not too fussed about the format.
ThreadId
does not implementDisplay
so I have deconstructed the debug format to return just the number (debug output isThreadId(#)
).I decided to use the string replace function rather than take a slice
&id[9..id.len()-1]
as there may be no guarantee that the debug format remains constant.😄