Re: [PATCH] rust: doctests: Use tabs for indentation in generated C code

From: Martin Rodriguez Reboredo
Date: Thu Jul 20 2023 - 20:28:50 EST


On 7/20/23 03:29, David Gow wrote:
While Rust uses 4 spaces for indentation, we should use tabs in the
generated C code. This does result in some scary-looking tab characters
in a .rs file, but they're in a string literal, so shouldn't make
anything complain too much.

Fixes: a66d733da801 ("rust: support running Rust documentation tests as KUnit ones")
Signed-off-by: David Gow <davidgow@xxxxxxxxxx>
---
[...]
I find it weird to mix indentations in one file, but if it leaves a
good result then I'll hold my tongue.

Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@xxxxxxxxx>