Skip to content
Snippets Groups Projects
Commit b93852d2 authored by Éloïs's avatar Éloïs
Browse files

fix clippy warnings

parent 08ac5ccc
No related branches found
No related tags found
1 merge request!59Fix #46
...@@ -83,7 +83,7 @@ pub(super) fn release_runtime(_spec_version: u32) -> Result<()> { ...@@ -83,7 +83,7 @@ pub(super) fn release_runtime(_spec_version: u32) -> Result<()> {
std::str::from_utf8(&output.stdout)? std::str::from_utf8(&output.stdout)?
.lines() .lines()
.last() .last()
.ok_or(anyhow!("empty srtool output"))?, .ok_or_else(|| anyhow!("empty srtool output"))?,
) )
.with_context(|| "Fail to parse srtool json output")?; .with_context(|| "Fail to parse srtool json output")?;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment