Skip to content

Commit 77501dd

Browse files
authored
Fix deprecation warning (#384)
1 parent a29a615 commit 77501dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

links-testing/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR ISC
33

4-
use toml_edit::Document;
4+
use toml_edit::DocumentMut;
55

66
fn main() {
77
let mut deps = vec![];
@@ -48,7 +48,7 @@ fn build_and_link(links: &str, target_name: &str) {
4848

4949
fn get_package_links_property(cargo_toml_path: &str) -> String {
5050
let cargo_toml = std::fs::read_to_string(cargo_toml_path).unwrap();
51-
let cargo_toml = cargo_toml.parse::<Document>().unwrap();
51+
let cargo_toml = cargo_toml.parse::<DocumentMut>().unwrap();
5252

5353
let links = cargo_toml["package"]["links"].as_str().unwrap();
5454

0 commit comments

Comments
 (0)