2 Checks for functions that return `Result` with an unusually large
6 A `Result` is at least as large as the `Err`-variant. While we
7 expect that variant to be seldomly used, the compiler needs to reserve
8 and move that much memory every single time.
11 The size determined by Clippy is platform-dependent.
16 UnparsedBytes([u8; 512]),
20 // The `Result` has at least 512 bytes, even in the `Ok`-case
21 pub fn parse() -> Result<(), ParseError> {
28 UnparsedBytes(Box<[u8; 512]>),
32 // The `Result` is slightly larger than a pointer
33 pub fn parse() -> Result<(), ParseError> {