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

Better Debug instance for Op #121

Closed
xrl opened this issue Jun 7, 2017 · 3 comments
Closed

Better Debug instance for Op #121

xrl opened this issue Jun 7, 2017 · 3 comments

Comments

@xrl
Copy link

xrl commented Jun 7, 2017

Could we make it so the "{:?}" formatting for an Op actually shows something? On Mac OS X it's an empty string. I have to do the following to make it better:

println!("'WRITE: {:?}' 'REMOVE: {:?}' 'CREATE: {:?}' '{:?}' ('{:?}')", op.contains(op::WRITE), op.contains(op::REMOVE), op.contains(op::CREATE), path, cookie)

Perhaps this kind of formatting could be put in to Debug?

@passcod
Copy link
Member

passcod commented Jun 7, 2017

This is probably a needed library upgrade to the latest version of bitflags, which seems to be better at this.

@passcod passcod added this to the 5.0.0 milestone Dec 28, 2017
@passcod
Copy link
Member

passcod commented Dec 28, 2017

That will be done in v5 (which takes a different approach to events). Tests for it here: 5661ca0

@passcod passcod closed this as completed Dec 28, 2017
@passcod
Copy link
Member

passcod commented Feb 9, 2019

This was done for v4 in #162

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