Skip to content

Commit 88e10a9

Browse files
committed
hardcode ratoml in init.rs
1 parent 1f624d4 commit 88e10a9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dev-rust-analyzer.toml

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/init.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@ pub fn init() -> Result<()> {
130130
fs::write("Cargo.toml", updated_cargo_toml)
131131
.context("Failed to create the file `rustlings/Cargo.toml`")?;
132132

133-
let ra_toml = include_str!("../dev-rust-analyzer.toml");
134-
fs::write("rust-analyzer.toml", ra_toml)
133+
fs::write("rust-analyzer.toml", RATOML)
135134
.context("Failed to create the file `rustlings/rust-analyzer.toml`")?;
136135

137136
fs::write(".gitignore", GITIGNORE)
@@ -173,6 +172,11 @@ const INIT_SOLUTION_FILE: &[u8] = b"fn main() {
173172
}
174173
";
175174

175+
const RATOML: &[u8] = br#"# rust-analyzer configuration file
176+
# DO NOT edit what is already defined.
177+
# You may add new configurations as needed.
178+
check.extraArgs = ["--profile", "test"]"#;
179+
176180
const GITIGNORE: &[u8] = b"Cargo.lock
177181
target/
178182
.vscode/

0 commit comments

Comments
 (0)