diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-08-10 19:06:46 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-08-10 19:06:46 +0200 |
| commit | 63cfcbe7a7745b276de58ec92e0141b958c44feb (patch) | |
| tree | 990e33a83756e27187033579ee2f85d5c79169d5 /src/sheet/tablized.rs | |
| parent | b747ca8af52129876b577a4f20f7105a05c6b002 (diff) | |
use unsafe blocks instead of mutexes
Diffstat (limited to 'src/sheet/tablized.rs')
| -rw-r--r-- | src/sheet/tablized.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sheet/tablized.rs b/src/sheet/tablized.rs index a40af0d..27b17e0 100644 --- a/src/sheet/tablized.rs +++ b/src/sheet/tablized.rs @@ -22,8 +22,7 @@ impl Tablized { .len(); let id = Register::create(columns, rows); - let lock = Register::get(id).unwrap(); - let mut sheet = lock.write().unwrap(); + let sheet = Register::get(id).unwrap(); for row in 0..rows { for column in 0..columns { |