mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
chore: upgrade deno_core (#25674)
No functional changes, just removes dead code.
This commit is contained in:
parent
01b5dfd9ea
commit
aaf2bf4bfb
10 changed files with 15 additions and 44 deletions
12
cli/main.rs
12
cli/main.rs
|
@ -417,18 +417,6 @@ pub(crate) fn unstable_exit_cb(feature: &str, api_name: &str) {
|
|||
std::process::exit(70);
|
||||
}
|
||||
|
||||
// TODO(bartlomieju): remove when `--unstable` flag is removed.
|
||||
#[allow(clippy::print_stderr)]
|
||||
pub(crate) fn unstable_warn_cb(feature: &str, api_name: &str) {
|
||||
eprintln!(
|
||||
"⚠️ {}",
|
||||
colors::yellow(format!(
|
||||
"The `{}` API was used with `--unstable` flag. The `--unstable` flag is deprecated and will be removed in Deno 2.0. Use granular `--unstable-{}` instead.\nLearn more at: https://docs.deno.com/runtime/manual/tools/unstable_flags",
|
||||
api_name, feature
|
||||
))
|
||||
);
|
||||
}
|
||||
|
||||
pub fn main() {
|
||||
setup_panic_hook();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue