()
| 15 | |
| 16 | impl Store { |
| 17 | pub fn new() -> Self { |
| 18 | Store { |
| 19 | questions: Arc::new(RwLock::new(Self::init())), |
| 20 | answers: Arc::new(RwLock::new(HashMap::new())), |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | fn init() -> HashMap<QuestionId, Question> { |
| 25 | let file = include_str!("../questions.json"); |
nothing calls this directly
no outgoing calls
no test coverage detected