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 a29a615 commit 77501ddCopy full SHA for 77501dd
links-testing/build.rs
@@ -1,7 +1,7 @@
1
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
// SPDX-License-Identifier: Apache-2.0 OR ISC
3
4
-use toml_edit::Document;
+use toml_edit::DocumentMut;
5
6
fn main() {
7
let mut deps = vec![];
@@ -48,7 +48,7 @@ fn build_and_link(links: &str, target_name: &str) {
48
49
fn get_package_links_property(cargo_toml_path: &str) -> String {
50
let cargo_toml = std::fs::read_to_string(cargo_toml_path).unwrap();
51
- let cargo_toml = cargo_toml.parse::<Document>().unwrap();
+ let cargo_toml = cargo_toml.parse::<DocumentMut>().unwrap();
52
53
let links = cargo_toml["package"]["links"].as_str().unwrap();
54
0 commit comments