Skip to content

Commit 7ec1867

Browse files
committed
refactor(toml): Give more specific name to ScriptSource
1 parent 0b99414 commit 7ec1867

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cargo/util/toml/embedded.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,15 @@ fn sanitize_name(name: &str) -> String {
189189
}
190190

191191
#[derive(Debug)]
192-
struct Source<'s> {
192+
struct ScriptSource<'s> {
193193
shebang: Option<&'s str>,
194194
info: Option<&'s str>,
195195
frontmatter: Option<&'s str>,
196196
content: &'s str,
197197
}
198198

199-
fn split_source(input: &str) -> CargoResult<Source<'_>> {
200-
let mut source = Source {
199+
fn split_source(input: &str) -> CargoResult<ScriptSource<'_>> {
200+
let mut source = ScriptSource {
201201
shebang: None,
202202
info: None,
203203
frontmatter: None,

0 commit comments

Comments
 (0)