@@ -51,32 +51,31 @@ pub fn find(library_name: &str) -> Option<PathBuf> {
5151 None
5252}
5353
54- const ENV_TENSORFLOW_DIR : & ' static str = "TENSORFLOW_DIR" ;
54+ const ENV_TENSORFLOW_DIR : & str = "TENSORFLOW_DIR" ;
5555
5656cfg_if ! {
5757 if #[ cfg( any( target_os = "linux" ) ) ] {
58- const ENV_LIBRARY_PATH : & ' static str = "LD_LIBRARY_PATH" ;
58+ const ENV_LIBRARY_PATH : & str = "LD_LIBRARY_PATH" ;
5959 } else if #[ cfg( target_os = "macos" ) ] {
60- const ENV_LIBRARY_PATH : & ' static str = "DYLD_LIBRARY_PATH" ;
60+ const ENV_LIBRARY_PATH : & str = "DYLD_LIBRARY_PATH" ;
6161 } else if #[ cfg( target_os = "windows" ) ] {
62- const ENV_LIBRARY_PATH : & ' static str = "PATH" ;
62+ const ENV_LIBRARY_PATH : & str = "PATH" ;
6363 } else {
6464 // This may not work but seems like a sane default for target OS' not listed above.
65- const ENV_LIBRARY_PATH : & ' static str = "LD_LIBRARY_PATH" ;
65+ const ENV_LIBRARY_PATH : & str = "LD_LIBRARY_PATH" ;
6666 }
6767}
6868
6969cfg_if ! {
7070 if #[ cfg( any( target_os = "linux" , target_os = "macos" ) ) ] {
71- const DEFAULT_INSTALLATION_DIRECTORIES : & ' static [ & ' static str ] =
71+ const DEFAULT_INSTALLATION_DIRECTORIES : & [ & str ] =
7272 & [ "/usr/local/lib" , "/usr/local/lib/libtensorflow" ] ;
7373 } else if #[ cfg( target_os = "windows" ) ] {
74- const DEFAULT_INSTALLATION_DIRECTORIES : & ' static [ & ' static str ] = & [
74+ const DEFAULT_INSTALLATION_DIRECTORIES : & [ & str ] = & [
7575 "C:\\ Program Files (x86)\\ Tensorflow" ,
7676 "C:\\ Program Files (x86)\\ tensorflow" ,
7777 ] ;
7878 } else {
79- const DEFAULT_INSTALLATION_DIRECTORIES : & ' static [ & ' static str ] = & [ ] ;
79+ const DEFAULT_INSTALLATION_DIRECTORIES : & [ & str ] = & [ ] ;
8080 }
8181}
82-
0 commit comments