diff options
| author | Marijn Schouten <hkBst@users.noreply.github.com> | 2025-01-22 16:46:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-22 16:46:40 +0100 |
| commit | 53578bdd194d41ac24fd4a5474601e3af2cb029d (patch) | |
| tree | f341958ec3d5a24e2bc6b38e4698e0b5bebb8e0e /compiler/rustc_parse_format | |
| parent | b2728d5426bab1d8c39709768c7e22b7f66dde5d (diff) | |
| download | rust-53578bdd194d41ac24fd4a5474601e3af2cb029d.tar.gz rust-53578bdd194d41ac24fd4a5474601e3af2cb029d.zip | |
remove implied end of slice
Diffstat (limited to 'compiler/rustc_parse_format')
| -rw-r--r-- | compiler/rustc_parse_format/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse_format/src/lib.rs b/compiler/rustc_parse_format/src/lib.rs index 9eb335cb34c..9a3e79c16b4 100644 --- a/compiler/rustc_parse_format/src/lib.rs +++ b/compiler/rustc_parse_format/src/lib.rs @@ -545,7 +545,7 @@ impl<'a> Parser<'a> { } } } - &self.input[start..self.input.len()] + &self.input[start..] } /// Parses an `Argument` structure, or what's contained within braces inside the format string. |
