cli: remove now unused Ui::with_cwd()

This commit is contained in:
Yuya Nishihara 2022-10-21 14:24:01 +09:00
parent 3fe6da1b51
commit 71ef8e74aa

View file

@ -75,10 +75,6 @@ fn use_color(choice: ColorChoice) -> bool {
impl Ui {
pub fn for_terminal(settings: UserSettings) -> Ui {
let cwd = std::env::current_dir().unwrap();
Self::with_cwd(cwd, settings)
}
pub fn with_cwd(cwd: PathBuf, settings: UserSettings) -> Ui {
let color = use_color(color_setting(&settings));
let formatter_factory = FormatterFactory::prepare(&settings, color);
Ui {