diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2023-06-19 05:47:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-19 01:47:57 -0400 |
commit | 751abecfe3cc25888d9170daa641f45f6b0b7666 (patch) | |
tree | b772dcd3ba20fd23337e84fb2c7adeb1b242b035 /build.rs | |
parent | 594e091a937e43397e06191783050fcefab2beaf (diff) |
other: take ownership of config and matches when building App (#1215)
The clap matches/config struct was taken in as a reference when building
the App structure. However, we do not need to keep these around after
this, so we can instead take ownership of the match/config and drop it
after to save a bit of memory.
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5,7 +5,7 @@ use std::{ use clap_complete::{generate_to, shells::Shell}; -include!("src/clap.rs"); +include!("src/args.rs"); fn create_dir(dir: &Path) -> io::Result<()> { let res = fs::create_dir_all(dir); |