comparison 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
comparison
equal deleted inserted replaced
35606:4b68ca118d8d 35607:24b5106e3e1e
82 dll.push("python27.dll"); 82 dll.push("python27.dll");
83 83
84 return dll.exists(); 84 return dll.exists();
85 } 85 }
86 86
87 const REQUIRED_CONFIG_FLAGS: [&'static str; 2] = ["Py_USING_UNICODE", "WITH_THREAD"]; 87 const REQUIRED_CONFIG_FLAGS: [&str; 2] = ["Py_USING_UNICODE", "WITH_THREAD"];
88 88
89 fn main() { 89 fn main() {
90 let config = get_python_config(); 90 let config = get_python_config();
91 91
92 println!("Using Python: {}", config.python); 92 println!("Using Python: {}", config.python);