diff options
| author | kennytm <kennytm@gmail.com> | 2018-12-01 01:05:59 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2018-12-01 02:03:43 +0800 |
| commit | bdb901c865e024161b2e8b9428235f82235df070 (patch) | |
| tree | 31a3f2ad649d24afbf964584e4283fb3d9aec0d5 /src/libsyntax/parse/parser.rs | |
| parent | ce00a8dd4d795f47a38a207af861a2cffcee7256 (diff) | |
| parent | 64cd645d14407d312c7ed3a10efd9b3a99271884 (diff) | |
| download | rust-bdb901c865e024161b2e8b9428235f82235df070.tar.gz rust-bdb901c865e024161b2e8b9428235f82235df070.zip | |
Rollup merge of #56336 - nnethercote:clean-up-pp, r=nikomatsakis
Clean up and streamline the pretty-printer Some minor improvements.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 506199b60ad..f13bb7df0b4 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2791,7 +2791,7 @@ impl<'a> Parser<'a> { s.print_usize(float.trunc() as usize)?; s.pclose()?; s.s.word(".")?; - s.s.word(fstr.splitn(2, ".").last().unwrap()) + s.s.word(fstr.splitn(2, ".").last().unwrap().to_string()) }); err.span_suggestion_with_applicability( lo.to(self.prev_span), |
