Skip to content

Commit

Permalink
Fix all non-todo warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dusty-phillips committed Aug 25, 2024
1 parent 6b0ee5a commit a5868a6
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/compiler/internal/generator/imports.gleam
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import compiler/internal/generator as internal
import compiler/python
import gleam/string_builder.{type StringBuilder}
import pprint

pub fn generate_imports(imports: List(python.Import)) -> StringBuilder {
internal.generate_plural(imports, generate_import, "\n")
Expand Down
2 changes: 0 additions & 2 deletions src/compiler/internal/transformer.gleam
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import compiler/python
import glance
import gleam/list
import gleam/option

pub type ReversedList(a) =
List(a)
Expand Down
1 change: 0 additions & 1 deletion src/compiler/internal/transformer/functions.gleam
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import compiler/internal/transformer as internal
import compiler/internal/transformer/statements
import compiler/python
import glance
Expand Down
5 changes: 2 additions & 3 deletions src/compiler/internal/transformer/statements.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import glance
import gleam/int
import gleam/list
import gleam/option
import pprint

// a block is a scope, so context can be reset at this level.
//
Expand Down Expand Up @@ -79,7 +78,7 @@ fn transform_statement(
]),
)
}
glance.Assignment(..) as expr -> {
glance.Assignment(..) -> {
todo as "Non-trivial assignments are not supported yet"
}

Expand Down Expand Up @@ -376,7 +375,7 @@ fn transform_case(
clauses: List(glance.Clause),
) -> internal.ExpressionReturn {
let subjects_result = case subjects {
[] -> panic("No subjects!")
[] -> panic as "No subjects!"
[subject] -> transform_expression(context, subject)
multiple -> transform_tuple(context, multiple)
}
Expand Down
1 change: 0 additions & 1 deletion test/internal/errors_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import gleeunit/should
import glexer
import glexer/token
import internal/errors
import pprint

// Reminder: glexer.Position is 0-indexed, but output columns are 1-indexed
pub fn position_at_first_byte_test() {
Expand Down

0 comments on commit a5868a6

Please sign in to comment.