From 1eb140cbcc48b2228a0bd75d19957be2021f8afe Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Tue, 19 Mar 2024 17:53:03 +0300 Subject: [PATCH] mod/direnv: fix fn name --- src/module/direnv.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/module/direnv.rs b/src/module/direnv.rs index 17a528f..8787cbd 100644 --- a/src/module/direnv.rs +++ b/src/module/direnv.rs @@ -25,7 +25,7 @@ pub struct DirenvModuleArgs { pub nodejs: bool, } -fn make_gitignore_content(args: DirenvModuleArgs) -> String { +fn make_envrc_content(args: DirenvModuleArgs) -> String { [ args.nix.map(|function| { format!( @@ -52,6 +52,6 @@ impl Module for DirenvModule { type ModuleArgs = DirenvModuleArgs; fn make(&self, args: Self::ModuleArgs) -> HashMap { - HashMap::from([(String::from(".envrc"), make_gitignore_content(args))]) + HashMap::from([(String::from(".envrc"), make_envrc_content(args))]) } }