refactor(tvix/nix-compat): drop useless try_into().expect()
This already has the right type. Change-Id: I8f5850a41f9e97f1bc5f2a45ca05cf7439665c9d Reviewed-on: https://cl.tvl.fyi/c/depot/+/9954 Reviewed-by: raitobezarius <tvl@lahfa.xyz> Tested-by: BuildkiteCI
This commit is contained in:
parent
d660c5dec8
commit
fb7e2a247a
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ impl<'a> StorePathRef<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(StorePathRef {
|
Ok(StorePathRef {
|
||||||
digest: digest.try_into().expect("size is known"),
|
digest,
|
||||||
name: validate_name(&s[ENCODED_DIGEST_SIZE + 1..])?,
|
name: validate_name(&s[ENCODED_DIGEST_SIZE + 1..])?,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue