File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,11 @@ readme = "README.md"
1212
1313[package .metadata ]
1414# Keep this at least 1 year old.
15- # (or not... 1.75 is required for "-> impl Trait" sadly)
15+ # 1.75 is required for "-> impl Trait"
1616msrv = " 1.75.0" # Dec 28, 2023
1717
1818[dependencies ]
1919async-lock = " 3.3.0"
20- atty = " 0.2.14"
2120base64 = " 0.22"
2221bytes = " 1.6.0"
2322log = " 0.4"
Original file line number Diff line number Diff line change 1313//! [OAuth types summary]: https://developers.dropbox.com/oauth-guide#summary
1414
1515use std:: env;
16- use std:: io:: { self , Write } ;
16+ use std:: io:: { self , IsTerminal , Write } ;
1717use std:: sync:: Arc ;
1818use async_lock:: RwLock ;
1919use base64:: Engine ;
@@ -664,7 +664,7 @@ pub fn get_auth_from_env_or_prompt() -> Authorization {
664664 }
665665 }
666666
667- if !atty :: is ( atty :: Stream :: Stdin ) {
667+ if !io :: stdin ( ) . is_terminal ( ) {
668668 panic ! ( "DBX_CLIENT_ID and/or DBX_OAUTH not set, and stdin not a TTY; cannot authorize" ) ;
669669 }
670670
You can’t perform that action at this time.
0 commit comments