Skip to content

Commit

Permalink
vfs,kv,sqlite: tweak interface variants
Browse files Browse the repository at this point in the history
  • Loading branch information
nick1udwig committed Dec 20, 2024
1 parent 5050ede commit 303b95c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/src/kv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub enum KvResponse {
Ok,
BeginTx { tx_id: u64 },
Get { key: Vec<u8> },
Err { error: KvError },
Err(KvError),
}

#[derive(Debug, Serialize, Deserialize, Error)]
Expand Down
2 changes: 1 addition & 1 deletion lib/src/sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub enum SqliteResponse {
Ok,
Read,
BeginTx { tx_id: u64 },
Err { error: SqliteError },
Err(SqliteError),
}

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
Expand Down
6 changes: 3 additions & 3 deletions lib/src/vfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ pub enum VfsAction {
Read,
ReadDir,
ReadToEnd,
ReadExact(u64),
ReadExact { length: u64 },
ReadToString,
Seek { seek_from: SeekFrom },
Seek(SeekFrom),
RemoveFile,
RemoveDir,
RemoveDirAll,
Expand Down Expand Up @@ -71,7 +71,7 @@ pub enum VfsResponse {
Ok,
Err(VfsError),
Read,
SeekFrom(u64),
SeekFrom { new_offset: u64 },
ReadDir(Vec<DirEntry>),
ReadToString(String),
Metadata(FileMetadata),
Expand Down

0 comments on commit 303b95c

Please sign in to comment.