Ruby

Ruby

Made by DeepSource

Lambda without a literal block is deprecated RB-W1004

Bug risk
Major
Autofix

Lambda without a literal block is deprecated since Ruby 3.0, use the proc without lambda instead.

Bad practice

lambda(&proc { do_something })
lambda(&Proc.new { do_something })

Recommended

proc { do_something }
Proc.new { do_something }
lambda { do_something } # If you use lambda.