Skip to content

Commit

Permalink
Update macro.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott authored Mar 18, 2024
1 parent 85d953a commit 96d7a47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layers/macro.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ end

function _check_new_macro(x::T) where T
Functors.isleaf(x) && return
Base.depwarn("This type should probably now use `Flux.@layer` instead of `@functor`: $T", Symbol("@functor"))
Base.depwarn(LazyString("This type should probably now use `Flux.@layer` instead of `@functor`: " T), Symbol("@functor"))
end
_check_new_macro(::Tuple) = nothing # defined by Functors.jl, not by users
_check_new_macro(::NamedTuple) = nothing
Expand Down

0 comments on commit 96d7a47

Please sign in to comment.