mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 04:48:52 -05:00
enable error-on-warning (#10410)
Only on linux and osx. Fixes one warning.
This commit is contained in:
parent
f60373e0d1
commit
e63c533154
2 changed files with 7 additions and 3 deletions
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
@ -48,8 +48,6 @@ jobs:
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: full
|
RUST_BACKTRACE: full
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
# TODO(ry) Enable error on warning after fixing https://github.com/denoland/deno/issues/10378
|
|
||||||
# RUSTFLAGS: -D warnings
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Configure git
|
- name: Configure git
|
||||||
|
@ -93,6 +91,12 @@ jobs:
|
||||||
curl -fsSL https://deno.land/x/install/install.sh | sh -s v1.7.2
|
curl -fsSL https://deno.land/x/install/install.sh | sh -s v1.7.2
|
||||||
echo "$HOME/.deno/bin" >> $GITHUB_PATH
|
echo "$HOME/.deno/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
|
# TODO(ry) Enable on all OSes https://github.com/denoland/deno/issues/10378
|
||||||
|
- name: Error on Warning
|
||||||
|
if: |
|
||||||
|
!startsWith(matrix.os, 'windows')
|
||||||
|
run: echo "RUSTFLAGS=-D warnings" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Install Deno (Windows)
|
- name: Install Deno (Windows)
|
||||||
if: startsWith(matrix.os, 'windows')
|
if: startsWith(matrix.os, 'windows')
|
||||||
run: |-
|
run: |-
|
||||||
|
|
|
@ -403,7 +403,7 @@ impl JsRuntime {
|
||||||
for e in extensions.iter_mut() {
|
for e in extensions.iter_mut() {
|
||||||
e.init_state(&mut op_state.borrow_mut())?;
|
e.init_state(&mut op_state.borrow_mut())?;
|
||||||
// Register each op after middlewaring it
|
// Register each op after middlewaring it
|
||||||
let mut ops = e.init_ops().unwrap_or_default();
|
let ops = e.init_ops().unwrap_or_default();
|
||||||
for (name, opfn) in ops {
|
for (name, opfn) in ops {
|
||||||
self.register_op(name, macroware(name, opfn));
|
self.register_op(name, macroware(name, opfn));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue