From eaad9b97cb62c7efe619a9531bfedded23d1128f Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 11 Oct 2024 10:39:09 +0300 Subject: [PATCH] fmt --- crates/core/src/config.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/core/src/config.rs b/crates/core/src/config.rs index 7c9613c..8d65108 100644 --- a/crates/core/src/config.rs +++ b/crates/core/src/config.rs @@ -699,7 +699,8 @@ pub fn delete_from_config(dependency_name: &str, path: impl AsRef) -> 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) -> Result<()> { let contents = fs::read_to_string(&foundry_config)?; let mut doc: DocumentMut = contents.parse::()?; @@ -860,7 +861,8 @@ fn parse_dependency(name: impl Into, value: &Item) -> Result } } -/// 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,