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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 18.11.2024 17:05, Miguel Ojeda wrote:
On Mon, Nov 18, 2024 at 3:37 PM Manas via B4 Relay
<devnull+manas18244.iiitd.ac.in@xxxxxxxxxx> wrote:

From: Manas <manas18244@xxxxxxxxxxx>

`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@xxxxxxxxxx>
Link: https://github.com/Rust-for-Linux/linux/issues/1128
Signed-off-by: Manas <manas18244@xxxxxxxxxxx>

If block wants to pick this one up independently:

Reviewed-by: Miguel Ojeda <ojeda@xxxxxxxxxx>

(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




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux