1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 09:04:12 +02:00

clippy fixes

This commit is contained in:
Robin Appelman 2026-05-08 22:23:40 +02:00
commit cd9740675f
2 changed files with 3 additions and 3 deletions

View file

@ -99,7 +99,7 @@ pub fn pull_all(config: &HazeConfig) -> Result<()> {
pool.install(|| { pool.install(|| {
repos.par_iter().for_each(|app_dir| { repos.par_iter().for_each(|app_dir| {
let app_name = app_dir.file_name().unwrap().to_string_lossy(); 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; return;
}; };
let branch_name = current_branch_name(&repo).unwrap_or("unknown".into()); 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) let output = match Command::new(GIT_BINARY)
.arg("pull") .arg("pull")
.current_dir(&app_dir) .current_dir(app_dir)
.output() .output()
{ {
Ok(output) => output, Ok(output) => output,

View file

@ -125,7 +125,7 @@ impl ServiceTrait for Ldap {
_cloud_id: &str, _cloud_id: &str,
_proxy: &ProxyConfig, _proxy: &ProxyConfig,
) -> Result<Option<String>> { ) -> 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()))
} }
} }