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"
12
12
13
13
[package .metadata ]
14
14
# 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"
16
16
msrv = " 1.75.0" # Dec 28, 2023
17
17
18
18
[dependencies ]
19
19
async-lock = " 3.3.0"
20
- atty = " 0.2.14"
21
20
base64 = " 0.22"
22
21
bytes = " 1.6.0"
23
22
log = " 0.4"
Original file line number Diff line number Diff line change 13
13
//! [OAuth types summary]: https://developers.dropbox.com/oauth-guide#summary
14
14
15
15
use std:: env;
16
- use std:: io:: { self , Write } ;
16
+ use std:: io:: { self , IsTerminal , Write } ;
17
17
use std:: sync:: Arc ;
18
18
use async_lock:: RwLock ;
19
19
use base64:: Engine ;
@@ -664,7 +664,7 @@ pub fn get_auth_from_env_or_prompt() -> Authorization {
664
664
}
665
665
}
666
666
667
- if !atty :: is ( atty :: Stream :: Stdin ) {
667
+ if !io :: stdin ( ) . is_terminal ( ) {
668
668
panic ! ( "DBX_CLIENT_ID and/or DBX_OAUTH not set, and stdin not a TTY; cannot authorize" ) ;
669
669
}
670
670
You can’t perform that action at this time.
0 commit comments