aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_db/src
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-06-23 22:34:12 +0100
committerGitHub <[email protected]>2020-06-23 22:34:12 +0100
commite2e373e0716cea4ea341c7f381da0d39f484cd30 (patch)
tree0337d53010edd2d5d09ab3ceffb0945b8eb4ae55 /crates/ra_db/src
parent846ed08fba1331f1ca8d3512e7536c05784ae4bc (diff)
parentaa69757a01c26cfad12498053c55cbc3d66a4bdb (diff)
Merge #5013
5013: More principled indentation trimming in fixtures r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_db/src')
-rw-r--r--crates/ra_db/src/fixture.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_db/src/fixture.rs b/crates/ra_db/src/fixture.rs
index 20f291568..3959d7efe 100644
--- a/crates/ra_db/src/fixture.rs
+++ b/crates/ra_db/src/fixture.rs
@@ -110,7 +110,7 @@ fn with_single_file(db: &mut dyn SourceDatabaseExt, ra_fixture: &str) -> FileId
110 let source_root = SourceRoot::new_local(file_set); 110 let source_root = SourceRoot::new_local(file_set);
111 111
112 let crate_graph = if let Some(meta) = ra_fixture.lines().find(|it| it.contains("//-")) { 112 let crate_graph = if let Some(meta) = ra_fixture.lines().find(|it| it.contains("//-")) {
113 let entry = Fixture::parse_single(meta.trim()); 113 let entry = Fixture::parse_meta_line(meta.trim());
114 let meta = match ParsedMeta::from(&entry) { 114 let meta = match ParsedMeta::from(&entry) {
115 ParsedMeta::File(it) => it, 115 ParsedMeta::File(it) => it,
116 }; 116 };