1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 05:21:16 +02:00

Add base32 encoder/decoder

This commit is contained in:
Eelco Dolstra 2019-09-17 00:18:17 +02:00
parent a1ff43045b
commit cce218f950
9 changed files with 349 additions and 4 deletions

View file

@ -12,7 +12,7 @@ pub struct StorePath {
pub const STORE_PATH_HASH_CHARS: usize = 32;
impl StorePath {
pub fn new(path: &Path, store_dir: &str) -> Result<Self, Error> {
pub fn new(path: &Path, _store_dir: &str) -> Result<Self, Error> {
// FIXME: check store_dir
Self::new_short(
path.file_name()