From 230f97ff45dfa83a503c63bffab3504dae9b3231 Mon Sep 17 00:00:00 2001 From: Evgeny Khudoba Date: Sun, 2 Jun 2024 22:16:38 +0700 Subject: [PATCH] Removed redundant using macro `lazy_static` in example `autocomplete` --- cursive/examples/autocomplete.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cursive/examples/autocomplete.rs b/cursive/examples/autocomplete.rs index 248d95ce..c57eb587 100644 --- a/cursive/examples/autocomplete.rs +++ b/cursive/examples/autocomplete.rs @@ -3,14 +3,11 @@ use cursive::traits::Scrollable; use cursive::view::{Nameable, Resizable}; use cursive::views::{Dialog, EditView, LinearLayout, SelectView, TextView}; use cursive::Cursive; -use lazy_static::lazy_static; // This example shows a way to implement a (Google-like) autocomplete search box. // Try entering "tok"! -lazy_static! { - static ref CITIES: &'static str = include_str!("assets/cities.txt"); -} +static CITIES: &'static str = include_str!("assets/cities.txt"); fn main() { let mut siv = cursive::default();