[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <m2h63yyssw.fsf@kloenk.dev>
Date: Wed, 12 Mar 2025 20:04:15 +0100
From: Fiona Behrens <me@...enk.dev>
To: Tamir Duberstein <tamird@...il.com>
Cc: Miguel Ojeda <ojeda@...nel.org>, Alex Gaynor <alex.gaynor@...il.com>,
Boqun Feng <boqun.feng@...il.com>, Gary Guo <gary@...yguo.net>,
Björn
Roy Baron <bjorn3_gh@...tonmail.com>, Benno Lossin
<benno.lossin@...ton.me>, Andreas Hindborg <a.hindborg@...nel.org>,
Alice Ryhl <aliceryhl@...gle.com>, Trevor Gross <tmgross@...ch.edu>,
Danilo Krummrich <dakr@...nel.org>, Boris-Chengbiao Zhou
<bobo1239@....de>, Kees Cook <kees@...nel.org>,
rust-for-linux@...r.kernel.org, linux-kernel@...r.kernel.org, Lukas
Wirth <lukas.wirth@...rous-systems.com>
Subject: Re: [PATCH v2 5/7] scripts: generate_rust_analyzer.py: use
str(pathlib.Path)
Tamir Duberstein <tamird@...il.com> writes:
> Use the `/` operator on `pathlib.Path` rather than directly crafting a
> string. This is consistent with all other path manipulation in this
> script.
>
> Signed-off-by: Tamir Duberstein <tamird@...il.com>
Reviewed-by: Fiona Behrens <me@...enk.dev>
> ---
> scripts/generate_rust_analyzer.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/generate_rust_analyzer.py b/scripts/generate_rust_analyzer.py
> index c73ea8d116a4..1bb185ae2e87 100755
> --- a/scripts/generate_rust_analyzer.py
> +++ b/scripts/generate_rust_analyzer.py
> @@ -109,7 +109,7 @@ def generate_crates(
> crate: ProcMacroCrate = {
> **crates[-1],
> "is_proc_macro": True,
> - "proc_macro_dylib_path": f"{objtree}/rust/{proc_macro_dylib_name}",
> + "proc_macro_dylib_path": str(objtree / "rust" / proc_macro_dylib_name),
> }
> crates[-1] = crate
Powered by blists - more mailing lists