From 84f648b4d2749658c26d0694d66f650306a6838c Mon Sep 17 00:00:00 2001 From: Christopher Chang <51393127+chriscerie@users.noreply.github.com> Date: Wed, 18 Oct 2023 13:04:34 -0700 Subject: [PATCH] Update deprecated --- selene-lib/src/lints/test_util.rs | 1 - .../tests/lints/deprecated/deprecated_functions.fixed.diff | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/selene-lib/src/lints/test_util.rs b/selene-lib/src/lints/test_util.rs index 50cb9f65..d904513d 100644 --- a/selene-lib/src/lints/test_util.rs +++ b/selene-lib/src/lints/test_util.rs @@ -144,7 +144,6 @@ pub fn test_lint_config_with_output< fixed_code.as_str(), fixed_diagnostics, |new_code| { - println!("Fixer generated code:\n{}", new_code); let fixed_ast = full_moon::parse(new_code).unwrap_or_else(|_| { panic!( "Fixer generated invalid code:\n\ diff --git a/selene-lib/tests/lints/deprecated/deprecated_functions.fixed.diff b/selene-lib/tests/lints/deprecated/deprecated_functions.fixed.diff index 26dbd0dc..d7659a2f 100644 --- a/selene-lib/tests/lints/deprecated/deprecated_functions.fixed.diff +++ b/selene-lib/tests/lints/deprecated/deprecated_functions.fixed.diff @@ -1,5 +1,5 @@ table.foreach({}, function(k, v) end) --[MA] print(table.getn(x)) -+[MA] print(#x) +-[MI] print(table.getn(x)) ++[MI] print(#x) table.foreach({}, 3)