Skip to content

Commit

Permalink
Use Haxe 4.3 features
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Apr 9, 2023
1 parent 098623d commit 2594922
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .haxerc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "4.2.5",
"version": "4.3.0",
"resolveLibs": "scoped"
}
40 changes: 20 additions & 20 deletions bin/mc2it_card.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions haxe_libraries/tink_core.hxml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# @install: lix --silent download "haxelib:/tink_core#2.1.0" into tink_core/2.1.0/haxelib
-cp ${HAXE_LIBCACHE}/tink_core/2.1.0/haxelib/src
-D tink_core=2.1.0
# @install: lix --silent download "haxelib:/tink_core#2.1.1" into tink_core/2.1.1/haxelib
-cp ${HAXE_LIBCACHE}/tink_core/2.1.1/haxelib/src
-D tink_core=2.1.1
2 changes: 1 addition & 1 deletion scripts/Watch.hx
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ private function measureCallback(?done: Callback<Null<JsError>>, ?prompt: String
final timestamp = Timer.stamp();
callback.invoke(Noise);
Sys.println('> ${Tools.formatDuration(Timer.stamp() - timestamp)}');
if (done != null) done.invoke(null);
done?.invoke(null);
} catch (e) { done != null ? done.invoke(new JsError(e.message)) : throw e; }
2 changes: 1 addition & 1 deletion src/mc2it_card/CardBuilder.hx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ abstract CardBuilder(StringBuf) from StringBuf {
/** Appends a line of plain text. **/
function addLine(text: String) {
this.add('$indent$text${Program.newLine}');
return (this: CardBuilder);
return abstract;
}

/** Gets the length in characters of the specified text, excluding formatting tags. **/
Expand Down

0 comments on commit 2594922

Please sign in to comment.