mbrt / ruplicity

Rust library managing duplicity backups
MIT License
18 stars 1 forks source link

Improve readability of BlockId and EntryId #55

Open mbrt opened 8 years ago

mbrt commented 8 years ago

Now we use pub type BlockId = (EntryId, usize) and pub type EntryId = (usize, u8) which are pretty unreadable. For example, to get the snapshot number out of a BlockId we have to do (id.0).1. Better to wrap them in new types and provide accessor methods.