From f2f69e75c84014a6173798e95af0baa48df2607e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 23 Jun 2020 21:45:40 +0200 Subject: Minor, rename --- crates/test_utils/src/fixture.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/test_utils') diff --git a/crates/test_utils/src/fixture.rs b/crates/test_utils/src/fixture.rs index 0cd51ab3e..ba928bb9c 100644 --- a/crates/test_utils/src/fixture.rs +++ b/crates/test_utils/src/fixture.rs @@ -55,7 +55,7 @@ The offending line: {:?}"#, let mut res: Vec = Vec::new(); for line in lines.by_ref() { if line.starts_with("//-") { - let meta = Fixture::parse_single(line); + let meta = Fixture::parse_meta_line(line); res.push(meta) } else if let Some(entry) = res.last_mut() { entry.text.push_str(line); @@ -66,7 +66,7 @@ The offending line: {:?}"#, } //- /lib.rs crate:foo deps:bar,baz cfg:foo=a,bar=b env:OUTDIR=path/to,OTHER=foo - pub fn parse_single(meta: &str) -> Fixture { + pub fn parse_meta_line(meta: &str) -> Fixture { assert!(meta.starts_with("//-")); let meta = meta["//-".len()..].trim(); let components = meta.split_ascii_whitespace().collect::>(); -- cgit v1.2.3