]> git.lizzy.rs Git - rust.git/commit
Use unsafe more idiomatically
authorSteve Klabnik <steve@steveklabnik.com>
Mon, 7 Sep 2015 14:16:57 +0000 (10:16 -0400)
committerSteve Klabnik <steve@steveklabnik.com>
Mon, 7 Sep 2015 14:16:57 +0000 (10:16 -0400)
commit5441ad6b9d944d0e625bed87e1e3ff169a268390
tree06c93dd34fe9faa9e298e1b299ec580a6e27d13c
parentf84d53ca0afaeac14903d16ab24455f6170795e1
Use unsafe more idiomatically

Generally, including everything that makes an unsafe block safe in the
block is good style. Since the assert! is what makes this safe, it
should go inside the block. I also added a few bits of whitespace.
src/libcore/slice.rs