mod/direnv: fix fn name
This commit is contained in:
parent
747b5c642b
commit
1eb140cbcc
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ pub struct DirenvModuleArgs {
|
||||||
pub nodejs: bool,
|
pub nodejs: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
fn make_gitignore_content(args: DirenvModuleArgs) -> String {
|
fn make_envrc_content(args: DirenvModuleArgs) -> String {
|
||||||
[
|
[
|
||||||
args.nix.map(|function| {
|
args.nix.map(|function| {
|
||||||
format!(
|
format!(
|
||||||
|
@ -52,6 +52,6 @@ impl Module for DirenvModule {
|
||||||
type ModuleArgs = DirenvModuleArgs;
|
type ModuleArgs = DirenvModuleArgs;
|
||||||
|
|
||||||
fn make(&self, args: Self::ModuleArgs) -> HashMap<String, String> {
|
fn make(&self, args: Self::ModuleArgs) -> HashMap<String, String> {
|
||||||
HashMap::from([(String::from(".envrc"), make_gitignore_content(args))])
|
HashMap::from([(String::from(".envrc"), make_envrc_content(args))])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue