diff options
author | Alexander Batischev <eual.jp@gmail.com> | 2021-07-21 20:45:32 +0300 |
---|---|---|
committer | Alexander Batischev <eual.jp@gmail.com> | 2021-07-21 20:45:32 +0300 |
commit | 500c06609b2408fed801840983e261fd87b15ebe (patch) | |
tree | c2e57abeb08a2ea3db4e5b7cd5494fc1544efe0c /src/client.rs | |
parent | df5d50b2c2fe705de059d9ea983ce21ca49ed132 (diff) | |
download | obnam2-500c06609b2408fed801840983e261fd87b15ebe.tar.gz |
In errors, store chunk ids as `ChunkId`, not `String`
Fixes #114.
Diffstat (limited to 'src/client.rs')
-rw-r--r-- | src/client.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.rs b/src/client.rs index b1f9976..92d825f 100644 --- a/src/client.rs +++ b/src/client.rs @@ -27,10 +27,10 @@ pub enum ClientError { NotFound(String), #[error("Server does not have chunk {0}")] - ChunkNotFound(String), + ChunkNotFound(ChunkId), #[error("Server does not have generation {0}")] - GenerationNotFound(String), + GenerationNotFound(ChunkId), #[error("Server response did not have a 'chunk-meta' header for chunk {0}")] NoChunkMeta(ChunkId), |