You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
270 B

use lazy_static;
use crate::sayings::read_all_sayings;
use std::sync::Mutex;
lazy_static! {
static ref SAYINGS: Mutex<Vec<String>> = Mutex::new(read_all_sayings());
}
pub fn all_sayings() -> Vec<String> {
SAYINGS.lock().expect("Error locking SAYINGS.").to_vec()
}