File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33//! Path resolution helpers for installed and built-in plugins.
44
55use directories:: ProjectDirs ;
6- use log:: { info, trace , warn} ;
6+ use log:: { info, warn} ;
77use std:: {
88 env,
99 path:: { Path , PathBuf } ,
@@ -113,7 +113,7 @@ fn push_linux_package_resource_bases(
113113 let entries = match std:: fs:: read_dir ( & lib_dir) {
114114 Ok ( entries) => entries,
115115 Err ( err) => {
116- trace ! (
116+ log :: trace!(
117117 "plugins: skipping Linux package resource root {}: {}" ,
118118 lib_dir. display( ) ,
119119 err
@@ -127,7 +127,7 @@ fn push_linux_package_resource_bases(
127127 continue ;
128128 }
129129 if !is_known_linux_package_app_dir ( & app_dir) {
130- trace ! (
130+ log :: trace!(
131131 "plugins: skipping non-OpenVCS Linux package dir {}" ,
132132 app_dir. display( )
133133 ) ;
@@ -149,6 +149,8 @@ fn push_linux_package_resource_bases(
149149/// - Candidate base directories that may contain the requested resource.
150150fn bundled_resource_base_dirs ( resource_dir_name : & str ) -> Vec < PathBuf > {
151151 let mut candidates: Vec < PathBuf > = Vec :: new ( ) ;
152+ #[ cfg( not( target_os = "linux" ) ) ]
153+ let _ = resource_dir_name;
152154
153155 if let Ok ( exe) = env:: current_exe ( ) {
154156 if let Some ( dir) = exe. parent ( ) {
You can’t perform that action at this time.
0 commit comments