From c6814b7cd54907128a4fb65159ed054b683157db Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Mon, 4 Aug 2025 19:26:42 +0200 Subject: options: replace get_value with get_value_for The two methods are identical. Signed-off-by: Paolo Bonzini --- mesonbuild/modules/rust.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/modules/rust.py') diff --git a/mesonbuild/modules/rust.py b/mesonbuild/modules/rust.py index d0e809181..59702d756 100644 --- a/mesonbuild/modules/rust.py +++ b/mesonbuild/modules/rust.py @@ -443,7 +443,7 @@ class RustModule(ExtensionModule): if self._bindgen_rust_target and '--rust-target' not in cmd: cmd.extend(['--rust-target', self._bindgen_rust_target]) if self._bindgen_set_std and '--rust-edition' not in cmd: - rust_std = state.environment.coredata.optstore.get_value('rust_std') + rust_std = state.environment.coredata.optstore.get_value_for('rust_std') assert isinstance(rust_std, str), 'for mypy' if rust_std != 'none': cmd.extend(['--rust-edition', rust_std]) -- cgit v1.2.3