0a7f902e2a
the part number cannot go above 255 at the moment, but if it ever gets bumped to a bigger integer type this boundary wouldn't cause a compile-error. explicitly checking for overflowing u8 makes this a bit more future-proof, and shuts up clippy as well ;) Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>