summaryrefslogtreecommitdiffstats
path: root/build.rs
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2023-06-19 05:47:57 +0000
committerGitHub <noreply@github.com>2023-06-19 01:47:57 -0400
commit751abecfe3cc25888d9170daa641f45f6b0b7666 (patch)
treeb772dcd3ba20fd23337e84fb2c7adeb1b242b035 /build.rs
parent594e091a937e43397e06191783050fcefab2beaf (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.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.rs b/build.rs
index f704ab38..0a051b83 100644
--- a/build.rs
+++ b/build.rs
@@ -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);