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

Allow taking an optional dependency on std to directly output to a String #20

Open
khuey opened this issue Nov 28, 2018 · 2 comments
Open

Comments

@khuey
Copy link

khuey commented Nov 28, 2018

It would be nice if it were possible to output to a String directly, rather than having to do a dance with format! and the Display impl. I assume the reason this is not currently possible is because this crate is no_std.

@alexcrichton
Copy link
Member

Seems plausible to me! Note that you can also use .to_string() as well, although that's still not as ergonomic as getting a String directly

@khuey
Copy link
Author

khuey commented Nov 28, 2018

Yes, I should have mentioned that. to_string (which comes from std's impl ToString for T where T: Display) doesn't allow specifying the alternative formatting (i.e. no hashes) argument though.

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 a pull request may close this issue.

2 participants