mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 09:04:12 +02:00
clippy fixes
This commit is contained in:
parent
39ba7a2a53
commit
cd9740675f
2 changed files with 3 additions and 3 deletions
|
|
@ -99,7 +99,7 @@ pub fn pull_all(config: &HazeConfig) -> Result<()> {
|
|||
pool.install(|| {
|
||||
repos.par_iter().for_each(|app_dir| {
|
||||
let app_name = app_dir.file_name().unwrap().to_string_lossy();
|
||||
let Ok(repo) = Repository::init(&app_dir) else {
|
||||
let Ok(repo) = Repository::init(app_dir) else {
|
||||
return;
|
||||
};
|
||||
let branch_name = current_branch_name(&repo).unwrap_or("unknown".into());
|
||||
|
|
@ -126,7 +126,7 @@ pub fn pull_all(config: &HazeConfig) -> Result<()> {
|
|||
|
||||
let output = match Command::new(GIT_BINARY)
|
||||
.arg("pull")
|
||||
.current_dir(&app_dir)
|
||||
.current_dir(app_dir)
|
||||
.output()
|
||||
{
|
||||
Ok(output) => output,
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ impl ServiceTrait for Ldap {
|
|||
_cloud_id: &str,
|
||||
_proxy: &ProxyConfig,
|
||||
) -> Result<Option<String>> {
|
||||
Ok(Some(format!("\nLdap users provisioned:\n\t'cn=admin,dc=example,dc=org' and password 'haze'\n\t'cn=ldaptest,dc=example,dc=org' and password 'test'\n\nldaptest is available for login\n")))
|
||||
Ok(Some("\nLdap users provisioned:\n\t'cn=admin,dc=example,dc=org' and password 'haze'\n\t'cn=ldaptest,dc=example,dc=org' and password 'test'\n\nldaptest is available for login\n".into()))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue