Skip to content

Commit 5408d4a

Browse files
committed
remove empty line at top of default conf & pref files
1 parent cb39c57 commit 5408d4a

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/cli.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pub fn run() -> anyhow::Result<()> {
4545
if args.prefs {
4646
if !prefs_path.exists() {
4747
fs::create_dir_all(prefs_path.parent().unwrap())?;
48-
fs::write(&prefs_path, DEFAULT_PREFS)?;
48+
fs::write(&prefs_path, DEFAULT_PREFS.trim_start())?;
4949
// written to stderr to allow initialization with commands like
5050
// $EDITOR "$(bacon --prefs)"
5151
eprintln!("Preferences file written.");
@@ -63,7 +63,7 @@ pub fn run() -> anyhow::Result<()> {
6363
let package_config_path = location.package_config_path();
6464
if args.init {
6565
if !package_config_path.exists() {
66-
fs::write(&package_config_path, DEFAULT_PACKAGE_CONFIG)?;
66+
fs::write(&package_config_path, DEFAULT_PACKAGE_CONFIG.trim_start())?;
6767
eprintln!("bacon project configuration file written.");
6868
} else {
6969
eprintln!("bacon configuration file already exists.");

src/default_package_config.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ command = ["cargo", "check", "--all-targets", "--color", "always"]
1515
need_stdout = false
1616
watch = ["tests", "benches", "examples"]
1717
18-
[jobs.light]
19-
command = ["cargo", "check", "--color", "always"]
20-
need_stdout = false
21-
2218
[jobs.clippy]
2319
command = ["cargo", "clippy", "--color", "always"]
2420
need_stdout = false

0 commit comments

Comments
 (0)