Skip to content

Commit 82807c0

Browse files
committed
add clippy suggestion and bump version to 1.7.0
1 parent f5a563a commit 82807c0

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "licensesnip"
33
description = "A tool to add license headers to your source code."
44
license = "MIT"
5-
version = "1.6.0"
5+
version = "1.7.0"
66
authors = ["notken12"]
77
edition = "2021"
88
repository = "https://github.com/notken12/licensesnip"

src/config.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,7 @@ pub fn load_config() -> Result<Config, LoadConfigErr> {
173173
Err(_) => return Err(LoadConfigErr::LoadUserConfigErr),
174174
};
175175

176-
let user_config = match PartialConfig::from_path(&config_path, true) {
177-
Ok(c) => c,
178-
Err(e) => return Err(e),
179-
};
176+
let user_config = PartialConfig::from_path(&config_path, true)?;
180177

181178
let cwd_config = match PartialConfig::from_path(Path::new(CFG_PATH), false) {
182179
Ok(c) => Some(c),

0 commit comments

Comments
 (0)