@@ -25,19 +25,19 @@ pub struct PleaseConfig {
|
||||
}
|
||||
|
||||
impl PleaseConfig {
|
||||
pub fn get_owner<'a>(&'a self) -> &'a str {
|
||||
pub fn get_owner(&self) -> &str {
|
||||
&self.project.owner
|
||||
}
|
||||
pub fn get_repository<'a>(&'a self) -> &'a str {
|
||||
pub fn get_repository(&self) -> &str {
|
||||
&self.project.repository
|
||||
}
|
||||
pub fn get_source<'a>(&'a self) -> &'a PathBuf {
|
||||
pub fn get_source(&self) -> &PathBuf {
|
||||
&self.project.source
|
||||
}
|
||||
pub fn get_branch<'a>(&'a self) -> &'a str {
|
||||
pub fn get_branch(&self) -> &str {
|
||||
&self.project.branch
|
||||
}
|
||||
pub fn get_api_url<'a>(&'a self) -> &'a str {
|
||||
pub fn get_api_url(&self) -> &str {
|
||||
&self.settings.api_url
|
||||
}
|
||||
}
|
||||
@@ -90,6 +90,6 @@ impl PleaseConfigBuilder {
|
||||
a.merge(x).clone()
|
||||
});
|
||||
|
||||
Ok(final_config.try_into()?)
|
||||
final_config.try_into()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user