diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2025-01-03 18:05:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-03 18:05:18 +0000 |
commit | 36e15b259eb9ee7fc0fdff0acb12d9adc889887c (patch) | |
tree | b4affed9c0f82ba4a846e7d9d15bc7f130523401 /src/config.rs | |
parent | Merge pull request #1463 from svenstaro/dependabot/cargo/all-dependencies-435... (diff) | |
parent | Use Self where possible (diff) | |
download | miniserve-36e15b259eb9ee7fc0fdff0acb12d9adc889887c.tar.gz miniserve-36e15b259eb9ee7fc0fdff0acb12d9adc889887c.zip |
Merge pull request #1466 from adamnemecek/master
Use Self where possible.
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs index f468365..984f873 100644 --- a/src/config.rs +++ b/src/config.rs @@ -269,7 +269,7 @@ impl MiniserveConfig { .transpose()? .unwrap_or_default(); - Ok(MiniserveConfig { + Ok(Self { verbose: args.verbose, path: args.path.unwrap_or_else(|| PathBuf::from(".")), port, |