Mercurial > hg
changeset 35607:24b5106e3e1e
rust: avoid redundant 'static lifetime
'static is apparently automatic for const variables.
Differential Revision: https://phab.mercurial-scm.org/D1846
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 10 Jan 2018 19:24:58 -0800 |
parents | 4b68ca118d8d |
children | fe4e1352c035 |
files | rust/hgcli/build.rs |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rust/hgcli/build.rs Thu Jan 11 11:57:59 2018 +0000 +++ b/rust/hgcli/build.rs Wed Jan 10 19:24:58 2018 -0800 @@ -84,7 +84,7 @@ return dll.exists(); } -const REQUIRED_CONFIG_FLAGS: [&'static str; 2] = ["Py_USING_UNICODE", "WITH_THREAD"]; +const REQUIRED_CONFIG_FLAGS: [&str; 2] = ["Py_USING_UNICODE", "WITH_THREAD"]; fn main() { let config = get_python_config();