From 981cfe4ae7d1a3ce2f8058e6182c496a7296bc2a Mon Sep 17 00:00:00 2001 From: Arjen <4867268+atezet@users.noreply.github.com> Date: Thu, 10 Oct 2024 13:10:50 +0200 Subject: [PATCH] Fix deprecation warnings --- Cargo.toml | 2 +- src/customcolors.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index dcecfb6..cb6c82f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ features = [ "Win32_System_Console", ] -[dev_dependencies] +[dev-dependencies] ansi_term = "0.12" insta = "1" rspec = "1" diff --git a/src/customcolors.rs b/src/customcolors.rs index 049d211..151d73b 100644 --- a/src/customcolors.rs +++ b/src/customcolors.rs @@ -30,7 +30,7 @@ mod tests { #[test] fn main() { let my_color = CustomColor::new(0, 120, 120); - insta::assert_display_snapshot!("Greetings from Ukraine".custom_color(my_color)); + insta::assert_snapshot!("Greetings from Ukraine".custom_color(my_color)); } #[test]