Browse Source

misc loose ends

- tweak release-pre command in justfile to ensure pre-release comes after verify-clean-git
- rustfmt
master
Jonathan Strong 2 years ago
parent
commit
8a719e7c6c
  1. 4
      justfile
  2. 6
      src/main.rs

4
justfile

@ -60,7 +60,9 @@ update-readme-and-commit: update-readme-and-stage
git commit -m 're-generate docs'
# get everything all ready for release
release-prep: verify-clean-git pre-release
release-prep:
just pre-release
just verify-clean-git
VERSION=$(just get-crate-version) \
&& test -z "$(git tag | rg \"v${VERSION}\")" # Error: tag appears to exist already
just update-readme-and-commit

6
src/main.rs

@ -383,7 +383,11 @@ async fn load_config_file(config: Config) -> Result<Config, AnyError> {
let toml = tokio::fs::read_to_string(&path).await?;
let config: Config = match toml::from_str(&toml) {
Ok(c) => c,
Err(e) => panic!("\nfatal error: parsing config file at {} failed:\n\n{}\n\n", path.display(), e),
Err(e) => panic!(
"\nfatal error: parsing config file at {} failed:\n\n{}\n\n",
path.display(),
e
),
};
Ok(config)
}

Loading…
Cancel
Save