Remove dependency on atty (#3047)
It is no longer maintained and has been replaced by functionality in the stdlib (std::io::IsTerminal).
This commit is contained in:
1 parent
1053943073
commit
c6ab2904cd
3 files changed
+2
-24
No files matched your search
@@ -1,4 +1,4 @@
|
||||
use std::process::exit;
|
||||
use std::{io::IsTerminal as _, process::exit};
|
||||
|
||||
use dioxus_rsx::{BodyNode, CallBody, TemplateBody};
|
||||
|
||||
@@ -121,7 +121,7 @@ fn determine_input(file: Option<String>, raw: Option<String>) -> Result<String>
|
||||
}
|
||||
|
||||
// If neither exist, we try to read from stdin
|
||||
if atty::is(atty::Stream::Stdin) {
|
||||
if std::io::stdin().is_terminal() {
|
||||
return custom_error!("No input file, source, or stdin to translate from.");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user