mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-12-28 06:49:19 +00:00
Merge pull request #2291 from senekor/senekor/llttzkqnommp
Fix workspace detection with windows line endings
This commit is contained in:
commit
1955313362
@ -74,7 +74,7 @@ pub fn init() -> Result<()> {
|
|||||||
|
|
||||||
let workspace_manifest_content = fs::read_to_string(&workspace_manifest)
|
let workspace_manifest_content = fs::read_to_string(&workspace_manifest)
|
||||||
.with_context(|| format!("Failed to read the file {}", workspace_manifest.display()))?;
|
.with_context(|| format!("Failed to read the file {}", workspace_manifest.display()))?;
|
||||||
if !workspace_manifest_content.contains("[workspace]\n")
|
if !workspace_manifest_content.contains("[workspace]")
|
||||||
&& !workspace_manifest_content.contains("workspace.")
|
&& !workspace_manifest_content.contains("workspace.")
|
||||||
{
|
{
|
||||||
bail!(
|
bail!(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user