fix(config): remove useless warning

This commit is contained in:
Federico Terzi 2021-05-05 21:30:52 +02:00
parent e3eecf0555
commit eeec734d32

View File

@ -526,13 +526,6 @@ impl LegacyConfigSet {
let default_file = config_dir.join(DEFAULT_CONFIG_FILE_NAME);
let default = LegacyConfig::load_config(default_file.as_path())?;
// Check that a compatible backend is used, otherwise warn the user
if cfg!(not(target_os = "linux")) && default.backend == BackendType::Auto {
eprintln!(
"Warning: Using Auto backend is only supported on Linux, falling back to Inject backend."
)
}
// Analyze which config files have to be loaded
let mut target_files = Vec::new();