Remove output-format=text setting (#12836)

This commit is contained in:
Micha Reiser 2024-10-08 13:46:42 +02:00 committed by Alex Waygood
parent 5c3c0c4705
commit 202c6a6d75
7 changed files with 19 additions and 103 deletions

View file

@ -454,17 +454,6 @@ impl Configuration {
return Err(anyhow!("The `tab-size` option has been renamed to `indent-width` to emphasize that it configures the indentation used by the formatter as well as the tab width. Please update {config_to_update} to use `indent-width = <value>` instead."));
}
#[allow(deprecated)]
if options.output_format == Some(OutputFormat::Text) {
let config_to_update = path.map_or_else(
|| String::from("your `--config` CLI arguments"),
|path| format!("`{}`", fs::relativize_path(path)),
);
return Err(anyhow!(
r#"The option `output_format=text` is no longer supported. Update {config_to_update} to use `output-format="concise"` or `output-format="full"` instead."#
));
}
Ok(Self {
builtins: options.builtins,
cache_dir: options