We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 544013e commit a00d0baCopy full SHA for a00d0ba
src/cargo/util/toml/embedded.rs
@@ -150,13 +150,12 @@ impl<'s> ScriptSource<'s> {
150
151
let mut rest = source.content;
152
while !rest.is_empty() {
153
- let c = rest;
154
- let c = c.trim_start_matches([' ', '\t']);
155
- let c = c.trim_start_matches(['\r', '\n']);
156
- if c == rest {
+ let without_spaces = rest.trim_start_matches([' ', '\t']);
+ let without_nl = without_spaces.trim_start_matches(['\r', '\n']);
+ if without_nl == rest {
157
break;
158
}
159
- rest = c;
+ rest = without_nl;
160
161
let fence_end = rest
162
.char_indices()
0 commit comments