Skip to content

Commit 9800dec

Browse files
committed
cargo fmt
1 parent 03bfe07 commit 9800dec

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

internal/compiler/lookup.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,9 @@ impl LookupObject for PredicateArgumentsLookup {
289289
) -> Option<R> {
290290
// we reverse the types here so that the most recently added predicate argument is the first one for shadowing purposes
291291
// this is done in case someone does `arr.any(x => x.any(x => x > 0))`... why anyone would do this is beyond me though
292-
for (name, ty) in ctx.predicate_arguments.iter().zip(ctx.predicate_argument_types.iter().rev()) {
292+
for (name, ty) in
293+
ctx.predicate_arguments.iter().zip(ctx.predicate_argument_types.iter().rev())
294+
{
293295
if let Some(r) =
294296
f(name, Expression::ReadLocalVariable { name: name.clone(), ty: ty.clone() }.into())
295297
{

tools/lsp/fmt/fmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2229,7 +2229,7 @@ export component MainWindow2 inherits Rectangle {
22292229
);
22302230
}
22312231

2232-
#[test]
2232+
#[test]
22332233
fn nested_predicate() {
22342234
assert_formatting(
22352235
"component X { property <[[int]]> arr: [[1, 2, 3, 4, 5]]; function foo() { arr.any(x => x.all(y => y == 7 ) ); } }",

0 commit comments

Comments
 (0)