Skip to content

Commit 1955313

Browse files
authored
Merge pull request #2291 from senekor/senekor/llttzkqnommp
Fix workspace detection with windows line endings
2 parents 2af9e89 + 95a597e commit 1955313

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pub fn init() -> Result<()> {
7474

7575
let workspace_manifest_content = fs::read_to_string(&workspace_manifest)
7676
.with_context(|| format!("Failed to read the file {}", workspace_manifest.display()))?;
77-
if !workspace_manifest_content.contains("[workspace]\n")
77+
if !workspace_manifest_content.contains("[workspace]")
7878
&& !workspace_manifest_content.contains("workspace.")
7979
{
8080
bail!(

0 commit comments

Comments
 (0)