mirror of
https://github.com/kristoferssolo/transmission-rpc.git
synced 2025-10-21 20:10:37 +00:00
chore: move unnecessary dependency to dev-dep
This commit is contained in:
parent
1081f5b1d9
commit
bb413f8331
@ -20,9 +20,9 @@ serde = { version = "1.0.144", features = ["derive"] }
|
|||||||
serde_repr = "0.1"
|
serde_repr = "0.1"
|
||||||
enum-iterator = "1.2.0"
|
enum-iterator = "1.2.0"
|
||||||
|
|
||||||
dotenvy = "0.15.5"
|
|
||||||
log = "0.4.17"
|
log = "0.4.17"
|
||||||
env_logger = "0.9.1"
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
env_logger = "0.9.1"
|
||||||
|
dotenvy = "0.15.5"
|
||||||
tokio = { version = "1.21.1", features = ["macros", "rt-multi-thread"] }
|
tokio = { version = "1.21.1", features = ["macros", "rt-multi-thread"] }
|
||||||
|
|||||||
@ -809,6 +809,7 @@ mod tests {
|
|||||||
dotenv().ok();
|
dotenv().ok();
|
||||||
env_logger::init();
|
env_logger::init();
|
||||||
let url = env::var("TURL")?;
|
let url = env::var("TURL")?;
|
||||||
|
|
||||||
let mut client;
|
let mut client;
|
||||||
if let (Ok(user), Ok(password)) = (env::var("TUSER"), env::var("TPWD")) {
|
if let (Ok(user), Ok(password)) = (env::var("TUSER"), env::var("TPWD")) {
|
||||||
client = TransClient::with_auth(url.parse()?, BasicAuth { user, password });
|
client = TransClient::with_auth(url.parse()?, BasicAuth { user, password });
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user