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.

7 lines
214 B

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