]> git.lizzy.rs Git - rust.git/commit
Don't reborrow the target of a `write!()`
authorChris Wong <lambda.fairy@gmail.com>
Wed, 1 Apr 2015 06:48:49 +0000 (19:48 +1300)
committerChris Wong <lambda.fairy@gmail.com>
Wed, 1 Apr 2015 06:48:49 +0000 (19:48 +1300)
commit7c3efcc5bb260234fc163340c9fd7aad3d8d780e
tree30ae61277d1f2b5d2e59fde5dd481b72c96b2a26
parentd754722a04b99fdcae0fd97fa2a4395521145ef2
Don't reborrow the target of a `write!()`

This means passing in e.g. a `Vec<u8>` or `String` will work as
intended, rather than deref-ing to `&mut [u8]` or `&mut str`.

[breaking-change]

Closes #23768
src/libcore/macros.rs