mirror of
https://github.com/nitnelave/lldap.git
synced 2023-04-12 14:25:13 +00:00
server: fix clippy's suggestions
This commit is contained in:
parent
2668ea4553
commit
a3216a4550
@ -43,7 +43,7 @@ pub fn export_schema(opts: ExportGraphQLSchemaOpts) -> anyhow::Result<()> {
|
|||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
let path = Path::new(&path);
|
let path = Path::new(&path);
|
||||||
let mut file =
|
let mut file =
|
||||||
File::create(&path).context(format!("unable to open '{}'", path.display()))?;
|
File::create(path).context(format!("unable to open '{}'", path.display()))?;
|
||||||
file.write_all(output.as_bytes())
|
file.write_all(output.as_bytes())
|
||||||
.context(format!("unable to write in '{}'", path.display()))?;
|
.context(format!("unable to write in '{}'", path.display()))?;
|
||||||
}
|
}
|
||||||
|
@ -170,7 +170,7 @@ fn run_healthcheck(opts: RunOpts) -> Result<()> {
|
|||||||
failure = true;
|
failure = true;
|
||||||
error!("{:#}", e)
|
error!("{:#}", e)
|
||||||
});
|
});
|
||||||
std::process::exit(if failure { 1 } else { 0 })
|
std::process::exit(i32::from(failure))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
|
Loading…
Reference in New Issue
Block a user