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 8d83b06 commit f02463bCopy full SHA for f02463b
src/cargo/util/toml/embedded.rs
@@ -245,8 +245,9 @@ fn split_source(input: &str) -> CargoResult<Source<'_>> {
245
_ => source.content.split_at(fence_end),
246
};
247
let (info, content) = rest.split_once("\n").unwrap_or((rest, ""));
248
+ let info = info.trim_end();
249
if !info.is_empty() {
- source.info = Some(info.trim_end());
250
+ source.info = Some(info);
251
}
252
source.content = content;
253
@@ -431,9 +432,7 @@ Ok(
431
432
shebang: Some(
433
"#!/usr/bin/env cargo\r\n",
434
),
- info: Some(
435
- "",
436
- ),
+ info: None,
437
frontmatter: Some(
438
"[dependencies]\r\ntime=\"0.1.25\"\r\n",
439
0 commit comments