chore: fmt

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-08-01 15:02:05 +02:00
parent 8cd68d569b
commit 8b83b9c14d
7 changed files with 12 additions and 17 deletions

View File

@@ -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()
}
}