Skip to content

Commit

Permalink
Removed redundant using macro lazy_static in example autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
xilec committed Jun 2, 2024
1 parent 5e1d7c0 commit 230f97f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cursive/examples/autocomplete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 230f97f

Please sign in to comment.