]> git.lizzy.rs Git - rust.git/commit
rollup merge of #24342: tbelaire/patch-1
authorAlex Crichton <alex@alexcrichton.com>
Tue, 14 Apr 2015 17:55:44 +0000 (10:55 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 14 Apr 2015 17:55:44 +0000 (10:55 -0700)
commite8ca9a6dd016779727667d6eb335ea89f36d155c
treefba838697da58f0956dd26029e800e6e2e5edc1e
parent5780fc11455af963c4f669d0a5f58e44c5068e87
parent912a872d3c7e12a5d9784c3bfd4cd3c911e468d9
rollup merge of #24342: tbelaire/patch-1

It was mistakenly calling `with_extension` with "foo.txt" instead of "txt".
I've also added an assert.  This also calls more attention to the fact you get back a PathBuf, instead of a Path, which I feel is easy to miss when skimming.