diff options
Diffstat (limited to 'mesonbuild/modules/rust.py')
| -rw-r--r-- | mesonbuild/modules/rust.py | 2 |
1 files changed, 1 insertions, 1 deletions
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]) |
