From 850c9825a42010a410c97b15ab4e4b060d1ce925 Mon Sep 17 00:00:00 2001 From: Tim Byrne Date: Wed, 23 Feb 2022 09:28:54 -0600 Subject: [PATCH] Improve --init/--fmt compatibility (#1115) The file produced by `--init` should generate a justfile which is formatted as expected by `--fmt`. --- src/subcommand.rs | 2 +- tests/init.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/subcommand.rs b/src/subcommand.rs index e674486043..64ba5736e4 100644 --- a/src/subcommand.rs +++ b/src/subcommand.rs @@ -1,6 +1,6 @@ use crate::common::*; -const INIT_JUSTFILE: &str = "default:\n\techo 'Hello, world!'\n"; +const INIT_JUSTFILE: &str = "default:\n echo 'Hello, world!'\n"; #[derive(PartialEq, Clone, Debug)] pub(crate) enum Subcommand { diff --git a/tests/init.rs b/tests/init.rs index 0fc8ce4942..3ea4a67b30 100644 --- a/tests/init.rs +++ b/tests/init.rs @@ -1,6 +1,6 @@ use crate::common::*; -const EXPECTED: &str = "default:\n\techo 'Hello, world!'\n"; +const EXPECTED: &str = "default:\n echo 'Hello, world!'\n"; #[test] fn current_dir() {