diff rust/hgcli/build.rs @ 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 11c86ab69e67
children ce088b38f92b
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();