mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-07-18 00:06:59 +02:00
gotta replace that Measure thing with RwLock<[u16;2]>
This commit is contained in:
parent
60dbd89fc9
commit
9ef63324af
6 changed files with 26 additions and 21 deletions
|
|
@ -1,4 +1,5 @@
|
|||
use crate::*;
|
||||
use crate::{*, config::*};
|
||||
|
||||
impl Config {
|
||||
pub fn get_mode (&self, mode: impl AsRef<str>) -> Option<Arc<Mode<Arc<str>>>> {
|
||||
self.modes.clone().read().unwrap().get(mode.as_ref()).cloned()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue