Skip to content

Commit 8c9a1eb

Browse files
committed
2.0.2
1 parent db7c873 commit 8c9a1eb

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ macro_rules! error_enum {
3939

4040
impl core::convert::AsRef<str> for $enum_name {
4141
fn as_ref(&self) -> &str {
42-
match *self {
42+
match self {
4343
$(
4444
Self::$prop_name => stringify!($prop_doc),
4545
)*

scripts/ci_artifacts.mjs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@ void (await Promise.all(
2828
)
2929
const originDir = join(ROOT_DIR, 'artifacts', artifact)
3030

31-
await Promise.all([readdir(originDir), mkdir(artifactsDir)]).then(
32-
([[nodeBinary]]) =>
33-
rename(
34-
join(originDir, nodeBinary),
35-
join(artifactsDir, nodeBinary)
36-
).then(resolve)
37-
)
31+
const [[nodeBinary]] = await Promise.all([
32+
readdir(originDir),
33+
mkdir(artifactsDir)
34+
])
35+
36+
await rename(join(originDir, nodeBinary), join(artifactsDir, nodeBinary))
3837
}
3938
})
4039
))

0 commit comments

Comments
 (0)