Skip to content

Commit c0c5512

Browse files
Merge pull request #15 from moonbit-community/fix-nightly-regressions
Fix nightly warning regressions
2 parents c2bc106 + 127f0bf commit c0c5512

4 files changed

Lines changed: 10 additions & 11 deletions

File tree

src/fuzzy_search_wtest.mbt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ test "search" {
3939
inspect(
4040
Query::search(Query::new("abc"), items~),
4141
content=(
42-
$|[\"aBc\", \"abc\", \"Abc_defgh\", \"___abc___\"]
42+
#|["aBc", "abc", "Abc_defgh", "___abc___"]
4343
),
4444
)
4545
}
@@ -49,19 +49,19 @@ test "split_by_matching_sections" {
4949
inspect(
5050
Query::split_by_matching_sections(Query::new("foo"), item="foo bar baz"),
5151
content=(
52-
$|Some([(true, \"foo\"), (false, \" bar baz\")])
52+
#|Some([(true, "foo"), (false, " bar baz")])
5353
),
5454
)
5555
inspect(
5656
Query::split_by_matching_sections(Query::new("abc"), item="____abc____"),
5757
content=(
58-
$|Some([(false, \"____\"), (true, \"abc\"), (false, \"____\")])
58+
#|Some([(false, "____"), (true, "abc"), (false, "____")])
5959
),
6060
)
6161
inspect(
6262
Query::split_by_matching_sections(Query::new("a ab"), item="a b"),
6363
content=(
64-
$|Some([(true, \"a\"), (false, \" \"), (true, \"b\")])
64+
#|Some([(true, "a"), (false, " "), (true, "b")])
6565
),
6666
)
6767
}

src/moon.pkg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import {
2+
"moonbitlang/core/deque",
3+
}
4+
5+
warnings = "-unused_value-unused_type_declaration-unused_type_variable-unused_constructor-unused_field-redundant_modifier"

src/moon.pkg.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/pkg.generated.mbti

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Generated using `moon info`, DON'T EDIT IT
2-
package "illusory0x0/fuzzy_match"
2+
package "moonbit-community/fuzzy_match"
33

44
// Values
55
pub fn[Pattern : StringLike, Text : StringLike] is_match(char_equal? : (Char, Char) -> Bool, pattern~ : Pattern, text~ : Text) -> Bool

0 commit comments

Comments
 (0)