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 6ec43df commit 159dcbcCopy full SHA for 159dcbc
source/tools/bump_crate_versions/src/main.rs
@@ -172,7 +172,7 @@ fn read_toml_version(dir: &Path) -> String {
172
let content = fs::read_to_string(&cargo_toml_path).expect(format!("Failed to read {}", cargo_toml_path.display()).as_str());
173
let doc = content.parse::<DocumentMut>().expect("Failed to parse Cargo.toml");
174
175
- doc["package"]["version"].to_string()
+ doc["package"]["version"].as_str().expect("Version must be a string").to_string()
176
}
177
178
fn update_toml_version(dir: &Path) {
0 commit comments