Skip to content

Commit

Permalink
bump gleam version to at least 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TanklesXL committed Apr 18, 2024
1 parent 16e59de commit 50f8f4f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: test

env:
GLEAM_VERSION: "1.1.0-rc3"
GLEAM_VERSION: "1.1.0"

on:
push:
Expand Down
2 changes: 2 additions & 0 deletions gleam.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name = "code_review"
version = "1.0.0"

gleam = ">= 1.1.0 and < 2.0.0"

# Fill out these fields if you intend to generate HTML documentation or publish
# your project to the Hex package manager.
#
Expand Down
2 changes: 1 addition & 1 deletion manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ packages = [
]

[requirements]
birdie = { version = ">= 1.1.2 and < 2.0.0"}
birdie = { version = ">= 1.1.2 and < 2.0.0" }
filepath = { version = ">= 1.0.0 and < 2.0.0" }
glance = { version = ">= 0.8.2 and < 1.0.0" }
glance_printer = { version = ">= 1.1.0 and < 2.0.0" }
Expand Down
20 changes: 10 additions & 10 deletions src/code_review.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ fn do_visit_expressions(
visit_statements(rules, statements)
}
glance.RecordUpdate(
module: _,
constructor: _,
record: record,
fields: fields,
) -> {
module: _,
constructor: _,
record: record,
fields: fields,
) -> {
let new_rules = do_visit_expressions(rules, record)

use acc_rules, #(_, expr) <- list.fold(fields, new_rules)
Expand All @@ -182,11 +182,11 @@ fn do_visit_expressions(
do_visit_expressions(rules, expr)
}
glance.FnCapture(
label: _,
function: function,
arguments_before: arguments_before,
arguments_after: arguments_after,
) -> {
label: _,
function: function,
arguments_before: arguments_before,
arguments_after: arguments_after,
) -> {
list.fold(
list.append(arguments_before, arguments_after),
rules,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ fn expression_visitor(
)

glance.BinaryOperator(
glance.Concatenate,
glance.String(_),
glance.String(_),
) -> #(
glance.Concatenate,
glance.String(_),
glance.String(_),
) -> #(
[
rule.error(
at: context.current_location,
Expand Down

0 comments on commit 50f8f4f

Please sign in to comment.