From 61a2ed8d52b3ae95d9b4e0b6a78585a9b395770f Mon Sep 17 00:00:00 2001 From: Benedikt Reinartz Date: Sun, 24 Sep 2023 13:55:54 +0200 Subject: [PATCH] Move deprecation warning to correct branch (#564) --- rustler_mix/lib/rustler/compiler/config.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rustler_mix/lib/rustler/compiler/config.ex b/rustler_mix/lib/rustler/compiler/config.ex index badaac41..dc508fe0 100644 --- a/rustler_mix/lib/rustler/compiler/config.ex +++ b/rustler_mix/lib/rustler/compiler/config.ex @@ -38,12 +38,12 @@ defmodule Rustler.Compiler.Config do # TODO: Remove in 1.0 rustler_crates = if mix_config = Mix.Project.config()[:rustler_crates] do - mix_config - else IO.warn( ":rustler_crates in mix.exs is deprecated, please explicitly pass options on `use Rustler` or configure the module in your `config/*.exs` files" ) + mix_config + else [] end