]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #67253 - elichai:2019-12-fmt, r=Dylan-DPC
authorMark Rousskov <mark.simulacrum@gmail.com>
Thu, 19 Dec 2019 22:53:52 +0000 (17:53 -0500)
committerGitHub <noreply@github.com>
Thu, 19 Dec 2019 22:53:52 +0000 (17:53 -0500)
commit939beb58d32c0aa0cf351e72d87b5f38aab9b7d4
tree48a7af4fb97af115298dd1612bf448b59faa9141
parent0de96d37fbcc54978458c18f5067cd9817669bc8
parenta9d6889e4d211e251e2f37cca358f61e488cb7cc
Rollup merge of #67253 - elichai:2019-12-fmt, r=Dylan-DPC

Add more delegations to the fmt docs and add doctests

HI,
this is a continuation to #67021
I replaced the `Debug` example with one that use the `Debug*` helpers so that padding etc will work too.
I also added asserts for the doctests as @RalfJung asked :)

The only thing I left with the `write!` macro is the `Display` example as I didn't know if there's a better way to do that.

r? @QuietMisdreavus
src/libcore/fmt/mod.rs