diff options
| author | Mo Bitar <76752051+mo8it@users.noreply.github.com> | 2025-09-23 16:18:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-23 16:18:05 +0200 |
| commit | 19553133627bf3d645d8ebfd7fffa0e922073f83 (patch) | |
| tree | 5e0afc85aa2de1d1bc77041067fec612a42b97be | |
| parent | 2af9e89ba536fad01aa828b06e0ac2174bad0f6d (diff) | |
| parent | 95a597eb8236c5ab180ac38284a655533f83e715 (diff) | |
Merge pull request #2291 from senekor/senekor/llttzkqnommp
Fix workspace detection with windows line endings
| -rw-r--r-- | src/init.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.rs b/src/init.rs index 68011ed..16ea35e 100644 --- a/src/init.rs +++ b/src/init.rs @@ -74,7 +74,7 @@ pub fn init() -> Result<()> { let workspace_manifest_content = fs::read_to_string(&workspace_manifest) .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.") { bail!( |
