remove mutex from RsxContext

This commit is contained in:
Evan Almloff committed 2022-06-06 13:29:32 -05:00
1 parent 0e97af989a
commit c7a332efaa
1 file changed
+4 -4
+4 -4
View File
@@ -7,7 +7,7 @@ use lazy_static::lazy_static;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::panic::Location;
use std::sync::{Arc, RwLock, RwLockReadGuard};
use std::sync::{RwLock, RwLockReadGuard};
use syn::parse_str;
mod attributes;
@@ -79,9 +79,9 @@ pub fn get_line_num() -> CodeLocation {
}
}
#[derive(Debug, Clone)]
#[derive(Debug)]
pub struct RsxContext {
data: Arc<RwLock<RsxData>>,
data: RwLock<RsxData>,
}
#[derive(Default)]
@@ -100,7 +100,7 @@ impl std::fmt::Debug for RsxData {
impl RsxContext {
pub fn new(data: RsxData) -> Self {
Self {
data: Arc::new(RwLock::new(data)),
data: RwLock::new(data),
}
}