We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da9cbd7 commit ca4a6b9Copy full SHA for ca4a6b9
src/package_version.rs
@@ -197,7 +197,7 @@ pub fn pre_commit_repo(hook: &PreCommitHook) -> String {
197
}
198
199
fn get_latest_python_version(name: &str) -> Result<String> {
200
- let url = format!("https://pypi.org/pypi/{}/json", name);
+ let url = format!("https://pypi.org/pypi/{name}/json");
201
let client = reqwest::blocking::Client::new();
202
let attempts = 3;
203
let min = Duration::from_millis(100); // 10ms
0 commit comments