-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rusti: print() is not io::print() #6617
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
CC @z0w0 |
In Ruby, we use |
Closed by #7070 |
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Jan 30, 2021
…ffen New lint: exhaustive_enums, exhaustive_structs Fixes rust-lang#6616 changelog: Added restriction lint: `exhaustive_enums`, `exhaustive_structs`
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
print()
in rusti behaves unexpected, compared toprintln()
:@cmr found there is a wrapper in
librusti/wrapper.rs
doing aio::println(fmt!("%?", result));
.This makes it easier to do a
print(a)
for any type, but it is overlaying io::print with a different behavior.I am not sure, whether this wrapper is necessary, since
a
inspects the item in a similar way.The text was updated successfully, but these errors were encountered: