Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-eth committed Oct 11, 2024
1 parent 6350971 commit eaad9b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/core/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,8 @@ pub fn delete_from_config(dependency_name: &str, path: impl AsRef<Path>) -> Resu
Ok(dependency)
}

/// Update the config file to add the `dependencies` folder as a source for libraries and the `[dependencies]` table.
/// Update the config file to add the `dependencies` folder as a source for libraries and the
/// `[dependencies]` table.
pub fn update_config_libs(foundry_config: impl AsRef<Path>) -> Result<()> {
let contents = fs::read_to_string(&foundry_config)?;
let mut doc: DocumentMut = contents.parse::<DocumentMut>()?;
Expand Down Expand Up @@ -860,7 +861,8 @@ fn parse_dependency(name: impl Into<String>, value: &Item) -> Result<Dependency>
}
}

/// Create a basic config file with default contents if it doesn't exist, otherwise add `[dependencies]`.
/// Create a basic config file with default contents if it doesn't exist, otherwise add
/// `[dependencies]`.
fn create_or_modify_config(
location: ConfigLocation,
foundry_path: impl AsRef<Path>,
Expand Down

0 comments on commit eaad9b9

Please sign in to comment.