Skip to content

Commit e197391

Browse files
author
Thibaut Oprinsen
committed
fix: fix indent fot linting
1 parent 36f3715 commit e197391

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

crates/pixi_build_rattler_build/src/protocol.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,10 @@ fn inject_pixi_version_into_context(source_code: &str, version: &str) -> miette:
490490

491491
// Find context: as a top-level key (at start of line, not indented)
492492
let insert_after = if source_code.starts_with("context:") {
493-
source_code.find('\n').map(|i| i + 1).unwrap_or(source_code.len())
493+
source_code
494+
.find('\n')
495+
.map(|i| i + 1)
496+
.unwrap_or(source_code.len())
494497
} else if let Some(pos) = source_code.find("\ncontext:") {
495498
let after = pos + "\ncontext:".len();
496499
source_code[after..]

0 commit comments

Comments
 (0)