Skip to content

Commit

Permalink
thanks clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Aug 27, 2023
1 parent 713cd59 commit 0d6d4ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions gix/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
)]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#![deny(missing_docs, rust_2018_idioms, unsafe_code)]
#![allow(clippy::result_large_err)]

// Re-exports to make this a potential one-stop shop crate avoiding people from having to reference various crates themselves.
// This also means that their major version changes affect our major version, but that's alright as we directly expose their
Expand Down
5 changes: 3 additions & 2 deletions src/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub mod pretty {
reverse_lines: bool,
progress: &gix::progress::prodash::tree::Root,
) -> anyhow::Result<()> {
Ok(if enable {
if enable {
let processor = tracing_forest::Printer::new().formatter({
let progress = std::sync::Mutex::new(progress.add_child("tracing"));
move |tree: &tracing_forest::tree::Tree| -> Result<String, std::fmt::Error> {
Expand All @@ -127,7 +127,8 @@ pub mod pretty {
tracing::subscriber::set_global_default(subscriber)?;
} else {
tracing::subscriber::set_global_default(tracing_subscriber::Registry::default())?;
})
}
Ok(())
}

#[cfg(not(feature = "small"))]
Expand Down

0 comments on commit 0d6d4ec

Please sign in to comment.