Thread (10 messages) 10 messages, 5 authors, 2024-11-18

Re: [PATCH v3 1/3] rust: block: simplify Result<()> in validate_block_size return

From: Manas <hidden>
Date: 2024-11-18 16:19:28
Also in: linux-block, lkml, rust-for-linux

On 18.11.2024 17:05, Miguel Ojeda wrote:
On Mon, Nov 18, 2024 at 3:37 PM Manas via B4 Relay
[off-list ref] wrote:
quoted
From: Manas <redacted>

`Result` is used in place of `Result<()>` because the default type
parameters are unit `()` and `Error` types, which are automatically
inferred. Thus keep the usage consistent throughout codebase.

Suggested-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1128
Signed-off-by: Manas <redacted>
If block wants to pick this one up independently:

Reviewed-by: Miguel Ojeda <ojeda@kernel.org>

(Note: normally you would carry the review/tested tags you were given
in a previous version, unless you made significant changes)
Thanks. I will keep that in mind.

-- 
Manas
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help