aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/config.rs b/src/config.rs
index 7fe9695..bbee2c9 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -27,8 +27,7 @@ pub enum Error {
#[derive(Debug)]
pub struct Config {
pub github_token: String,
- pub owner: String,
- pub repo: String,
+ pub o_r: Result<OwnerRepo, owner_repo::Error>,
pub suggestions: Vec<String>,
}
@@ -46,12 +45,11 @@ impl Config {
let o_r = OwnerRepo::from_remote(
Self::remote(&opt_matches, &git_config)?.as_deref(),
- )?;
+ );
Ok(Config {
github_token: Self::github_token(&opt_matches, &git_config)?,
- owner: o_r.owner,
- repo: o_r.repo,
+ o_r: o_r,
suggestions: opt_matches.free,
})
}