Skip to content

Commit 208d56f

Browse files
author
Shlomi Kushchi
committed
cr fixes
1 parent 5c57934 commit 208d56f

File tree

4 files changed

+3
-209
lines changed

4 files changed

+3
-209
lines changed

sdk/core/azure_core_amqp/src/socks5.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ impl SocksConnection {
492492
if masked.password().is_some() {
493493
let _ = masked.set_password(Some("***"));
494494
}
495-
masked.to_string()
495+
masked.sanitize(&[])
496496
}
497497
}
498498

sdk/eventhubs/azure_messaging_eventhubs/examples/eventhubs_socks5_proxy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ fn mask_proxy_credentials(url: &str) -> String {
135135
if parsed_url.password().is_some() {
136136
let _ = masked.set_password(Some("***"));
137137
}
138-
masked.to_string()
138+
masked.sanitize(&[])
139139
} else {
140140
// If URL parsing fails, return a safe placeholder
141141
"invalid_proxy_url".to_string()

sdk/eventhubs/azure_messaging_eventhubs/tests/eventhubs_socks5_messaging.rs

Lines changed: 0 additions & 206 deletions
This file was deleted.

sdk/eventhubs/azure_messaging_eventhubs/tests/eventhubs_socks5_proxy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ fn mask_proxy_credentials(url: &str) -> String {
173173
if masked.password().is_some() {
174174
let _ = masked.set_password(Some("***"));
175175
}
176-
masked.to_string()
176+
masked.sanitize(&[])
177177
} else {
178178
"invalid_url".to_string()
179179
}

0 commit comments

Comments
 (0)