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:
Florian Klink 2023-11-05 14:05:16 +02:00 committed by flokli
parent d660c5dec8
commit fb7e2a247a

View file

@ -209,7 +209,7 @@ impl<'a> StorePathRef<'a> {
}
Ok(StorePathRef {
digest: digest.try_into().expect("size is known"),
digest,
name: validate_name(&s[ENCODED_DIGEST_SIZE + 1..])?,
})
}