Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

MemoryAllocator, MemorySubAllocator, etc should not have inherent Debug bounds. #13

Open
Lymia opened this issue Apr 14, 2018 · 2 comments

Comments

@Lymia
Copy link
Contributor

Lymia commented Apr 14, 2018

Though it is good practice in libraries to have Debug impls, applications that define their own allocators may not always want to.

@richard-uk1
Copy link

richard-uk1 commented May 3, 2018

You can always to a blank impl of Debug

impl Debug for Something {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "Something")
    }
}

@zakarumych
Copy link

I think @Lymia is right. We should not require Debug implementation in traits. But provide it for all structures.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants