mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Simplify
This commit is contained in:
parent
30748161f0
commit
21f751a0e5
5 changed files with 24 additions and 31 deletions
|
@ -69,7 +69,7 @@ impl<'a> Project<'a> {
|
|||
let mut paths = vec![];
|
||||
|
||||
for entry in parse_fixture(self.fixture) {
|
||||
let path = tmp_dir.path().join(&entry.meta.path['/'.len_utf8()..]);
|
||||
let path = tmp_dir.path().join(&entry.path['/'.len_utf8()..]);
|
||||
fs::create_dir_all(path.parent().unwrap()).unwrap();
|
||||
fs::write(path.as_path(), entry.text.as_bytes()).unwrap();
|
||||
paths.push((path, entry.text));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue