Change underlying type of BufferId to NonZeroU64.

This commit is contained in:
Piotr Osiewicz
2024-01-29 20:00:47 +01:00
parent 5ab715aac9
commit b29f45ea68
3 changed files with 10 additions and 8 deletions
+2 -2
View File
@@ -67,7 +67,7 @@ async fn test_channel_buffers(db: &Arc<Database>) {
.await
.unwrap();
let mut buffer_a = Buffer::new(0, text::BufferId::new(0).unwrap(), "".to_string());
let mut buffer_a = Buffer::new(0, text::BufferId::new(1).unwrap(), "".to_string());
let mut operations = Vec::new();
operations.push(buffer_a.edit([(0..0, "hello world")]));
operations.push(buffer_a.edit([(5..5, ", cruel")]));
@@ -92,7 +92,7 @@ async fn test_channel_buffers(db: &Arc<Database>) {
let mut buffer_b = Buffer::new(
0,
text::BufferId::new(0).unwrap(),
text::BufferId::new(1).unwrap(),
buffer_response_b.base_text,
);
buffer_b