Skip to content

Commit

Permalink
Fix deprecation warning (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth authored Apr 8, 2024
1 parent a29a615 commit 77501dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions links-testing/build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0 OR ISC

use toml_edit::Document;
use toml_edit::DocumentMut;

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

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

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

Expand Down

0 comments on commit 77501dd

Please sign in to comment.