rust: avoid redundant 'static lifetime
authorGregory Szorc <gregory.szorc@gmail.com>
Wed, 10 Jan 2018 19:24:58 -0800
changeset 35607 24b5106e3e1e
parent 35606 4b68ca118d8d
child 35608 fe4e1352c035
rust: avoid redundant 'static lifetime 'static is apparently automatic for const variables. Differential Revision: https://phab.mercurial-scm.org/D1846
rust/hgcli/build.rs
--- 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();