Skip to content

do not require the user to import std::fmt::Display#11

Open
TheJonny wants to merge 4 commits into
ihrwein:masterfrom
TheJonny:master
Open

do not require the user to import std::fmt::Display#11
TheJonny wants to merge 4 commits into
ihrwein:masterfrom
TheJonny:master

Conversation

@TheJonny
Copy link
Copy Markdown

When using this library, one is required to manually import std::fmt::Display.
But this import is not used in the user written code, only in the generated impl.
As the user imports the macro "Display", they should not be required to also import std::fmt::Display.

this commit changes the generated code to use "std::fmt::Display" instead of "Dislay" and removes the imports in the examples.

@TheJonny
Copy link
Copy Markdown
Author

in 16d1080 I had to add an edition to Cargo.toml, so that core::fmt::Display is found. If you want to support older compilers: 2018 does also work, 2015 does not.

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

Successfully merging this pull request may close these issues.

1 participant