Commit 997efdd
committed
refactor: use String::new() for empty API key
Use `String::new()` instead of `“”.to_string()` when no API key is supplied.
This eliminates an unnecessary heap allocation and clarifies that the intent is to create an empty string without creating a temporary literal.1 parent b823739 commit 997efdd
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments