summaryrefslogtreecommitdiff
path: root/src/app.rs
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2024-08-01 20:56:33 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2024-08-01 20:56:33 +0200
commitd9ffe5c43ee3ee4497ee88af6212fe868761e1dc (patch)
tree0a94f8288e032c107302ab9c056abd650bf9043c /src/app.rs
parent711a0dcabf11d144784ef63e32eec3b1cfec18aa (diff)
fix cell typing
Diffstat (limited to 'src/app.rs')
-rw-r--r--src/app.rs14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/app.rs b/src/app.rs
index f60c2ca..a215859 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -20,19 +20,7 @@ pub struct App {
impl App {
pub fn new() -> Self {
- let sheet_id = Register::create(200, 1000);
- let sheet = Register::get(sheet_id).unwrap();
-
- {
- let mut sheet = sheet.write().unwrap();
-
- for row in 0..sheet.height() {
- for column in 0..sheet.width() {
- sheet.set_cell(row, column, format!("{}/{}", row, column).into());
- }
- }
- }
-
+ let sheet_id = Register::create(10, 50);
let view = SheetView::new(sheet_id);
Self {