File tree Expand file tree Collapse file tree 5 files changed +12
-18
lines changed Expand file tree Collapse file tree 5 files changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -636,13 +636,6 @@ absorbRHS expr = case expr of
636
636
(With {}) -> nest $ group' RegularG $ line <> pretty expr
637
637
-- Special case `//` and `++` operations to be more compact in some cases
638
638
-- Case 1: two arguments, LHS is absorbable term, RHS fits onto the last line
639
- (Operation (Term t) (LoneAnn op) b)
640
- | isAbsorbable t
641
- && isUpdateOrConcat op
642
- -- Exclude further operations on the RHS
643
- -- Hotfix for https://github.com/NixOS/nixfmt/issues/198
644
- && case b of (Operation {}) -> False ; _ -> True ->
645
- hardspace <> (prettyTermWide t) <> group' RegularG (line <> pretty op <> hardspace <> pretty b)
646
639
-- Unindent concatenations
647
640
-- https://github.com/NixOS/nixfmt/issues/228
648
641
(Operation (Term t) op@ (Ann {value}) _)
Original file line number Diff line number Diff line change 414
414
list
415
415
] ;
416
416
some . long . attribute # with a comment
417
- = [
418
- stuff
419
- ] ++ more stuff ;
417
+ = [ stuff ] ++ more stuff ;
420
418
some . long . attribute1 # with a comment
421
419
= [
422
420
stuff
423
421
a
424
422
b
425
423
c
426
- ] ++ more stuff ;
424
+ ]
425
+ ++ more stuff ;
427
426
428
427
foo4 # nasty
429
428
= # comments
Original file line number Diff line number Diff line change 431
431
list
432
432
] ;
433
433
some . long . attribute # with a comment
434
- = [
435
- stuff
436
- ] ++ more stuff ;
434
+ = [ stuff ] ++ more stuff ;
437
435
some . long . attribute1 # with a comment
438
436
= [
439
437
stuff
440
438
a
441
439
b
442
440
c
443
- ] ++ more stuff ;
441
+ ]
442
+ ++ more stuff ;
444
443
445
444
foo4 # nasty
446
445
= # comments
Original file line number Diff line number Diff line change @@ -573,7 +573,8 @@ buildStdenv.mkDerivation ({
573
573
inherit tests ;
574
574
inherit gtk3 ;
575
575
inherit wasiSysRoot ;
576
- } // extraPassthru ;
576
+ }
577
+ // extraPassthru ;
577
578
578
579
hardeningDisable = [ "format" ] ; # -Werror=format-security
579
580
Original file line number Diff line number Diff line change @@ -239,7 +239,8 @@ buildStdenv.mkDerivation ({
239
239
240
240
outputs = [
241
241
"out"
242
- ] ++ lib . optionals crashreporterSupport [ "symbols" ] ;
242
+ ]
243
+ ++ lib . optionals crashreporterSupport [ "symbols" ] ;
243
244
244
245
# Add another configure-build-profiling run before the final configure phase if we build with pgo
245
246
preConfigurePhases = lib . optionals pgoSupport [
@@ -575,7 +576,8 @@ buildStdenv.mkDerivation ({
575
576
inherit tests ;
576
577
inherit gtk3 ;
577
578
inherit wasiSysRoot ;
578
- } // extraPassthru ;
579
+ }
580
+ // extraPassthru ;
579
581
580
582
hardeningDisable = [ "format" ] ; # -Werror=format-security
581
583
You can’t perform that action at this time.
0 commit comments