Change underlying type of BufferId to NonZeroU64.

This commit is contained in:
Piotr Osiewicz 2024-01-29 17:05:18 +01:00
parent 5ab715aac9
commit b29f45ea68
3 changed files with 10 additions and 8 deletions

View file

@ -722,7 +722,7 @@ impl Project {
worktrees: Vec::new(),
buffer_ordered_messages_tx: tx,
loading_buffers_by_path: Default::default(),
next_buffer_id: BufferId::default(),
next_buffer_id: BufferId::new(1).unwrap(),
opened_buffer: watch::channel(),
shared_buffers: Default::default(),
incomplete_remote_buffers: Default::default(),