Skip to content

Commit

Permalink
Use DocumentMut
Browse files Browse the repository at this point in the history
  • Loading branch information
cnpryer committed Mar 29, 2024
1 parent 71b02f9 commit edc54e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rye/src/cli/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use age::{
};
use anyhow::{bail, Context, Error};
use clap::Parser;
use toml_edit::{Document, Item, Table};
use toml_edit::{DocumentMut, Item, Table};
use url::Url;

use crate::bootstrap::ensure_self_venv;
Expand Down Expand Up @@ -491,7 +491,7 @@ fn prompt_decrypt_passphrase() -> Result<Option<Secret<String>>, Error> {
}

fn save_rye_credentials(
file: &mut Document,
file: &mut DocumentMut,
credentials: &Credentials,
repository: &Repository,
should_encrypt: bool,
Expand Down Expand Up @@ -814,7 +814,7 @@ mod tests {
fn test_save_rye_credentials_encrypt() {
let tempdir = tempdir().unwrap();
let temp_home = tempdir.path();
let mut credentials_table = Document::new();
let mut credentials_table = DocumentMut::new();

let cli_repo = "pypi".to_string();

Expand Down

0 comments on commit edc54e3

Please sign in to comment.