Skip to content
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

Debug on MutexGuard #128

Closed
MOZGIII opened this issue Apr 7, 2019 · 4 comments
Closed

Debug on MutexGuard #128

MOZGIII opened this issue Apr 7, 2019 · 4 comments

Comments

@MOZGIII
Copy link

MOZGIII commented Apr 7, 2019

Please add Debug for MutexGuard.

@Amanieu
Copy link
Owner

Amanieu commented Apr 7, 2019

It should already be there?

@MOZGIII
Copy link
Author

MOZGIII commented Apr 7, 2019

What do you mean? Debug is not implemented according to the docs: https://docs.rs/lock_api/0.1.5/lock_api/struct.MutexGuard.html

I've just had to manually call .deref on the guard to print the value in the debug mode. It doesn't deref automatically as there're no method calls on the value when it's printed: print!("{:?}", my_locked_guard) is rejected by the compiler.

@Amanieu
Copy link
Owner

Amanieu commented Apr 7, 2019

Ah my bad. It seems that Debug is available in master, but that version has not been published yet. We are waiting for #119 to land before publishing a new release.

@MOZGIII
Copy link
Author

MOZGIII commented Apr 7, 2019

I see there's active work going on there, so that's ok. But if it slows down or is paused, please consider a new release without waiting on it. Thanks!

@MOZGIII MOZGIII closed this as completed Apr 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants