From 80386ca5be78d8ea65483df3edeec1a89b09a5a3 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 1 Jul 2020 10:03:07 +0200 Subject: Use Strings for display names --- crates/ra_ide/src/mock_analysis.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_ide/src') diff --git a/crates/ra_ide/src/mock_analysis.rs b/crates/ra_ide/src/mock_analysis.rs index db6d50694..a393d3dba 100644 --- a/crates/ra_ide/src/mock_analysis.rs +++ b/crates/ra_ide/src/mock_analysis.rs @@ -130,7 +130,7 @@ impl MockAnalysis { let other_crate = crate_graph.add_crate_root( file_id, edition, - Some(CrateName::new(crate_name).unwrap()), + Some(crate_name.to_string()), cfg, env, Default::default(), -- cgit v1.2.3