update log (#2766)

This commit is contained in:
extrawurst 2025-10-29 15:27:28 +01:00 committed by GitHub
parent 1032cccd55
commit 58490961c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 8 deletions

4
Cargo.lock generated
View file

@ -2534,9 +2534,9 @@ dependencies = [
[[package]]
name = "log"
version = "0.4.26"
version = "0.4.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "30bde2b3dc3671ae49d8e2e9f044c7c005836e7a023ee57cffa25ab82764bb9e"
checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432"
[[package]]
name = "lru"

View file

@ -33,7 +33,8 @@ It wraps libraries like git2 and gix.
clippy::module_name_repetitions,
clippy::must_use_candidate,
clippy::missing_errors_doc,
clippy::empty_docs
clippy::empty_docs,
clippy::unnecessary_debug_formatting
)]
//TODO:
#![allow(

View file

@ -115,11 +115,11 @@ pub fn submodule_parent_info(
let repo = repo(repo_path)?;
let repo_wd = work_dir(&repo)?.to_path_buf();
log::trace!("[sub] repo_wd: {:?}", repo_wd);
log::trace!("[sub] repo_wd: {repo_wd:?}");
log::trace!("[sub] repo_path: {:?}", repo.path());
if let Some(parent_path) = repo_wd.parent() {
log::trace!("[sub] parent_path: {:?}", parent_path);
log::trace!("[sub] parent_path: {parent_path:?}");
if let Ok(parent) = Repository::open_ext(
parent_path,
@ -127,14 +127,14 @@ pub fn submodule_parent_info(
Vec::<&Path>::new(),
) {
let parent_wd = work_dir(&parent)?.to_path_buf();
log::trace!("[sub] parent_wd: {:?}", parent_wd);
log::trace!("[sub] parent_wd: {parent_wd:?}");
let submodule_name = repo_wd
.strip_prefix(parent_wd)?
.to_string_lossy()
.to_string();
log::trace!("[sub] submodule_name: {:?}", submodule_name);
log::trace!("[sub] submodule_name: {submodule_name:?}");
if let Ok(submodule) =
parent.find_submodule(&submodule_name)

View file

@ -52,7 +52,8 @@
clippy::multiple_crate_versions,
clippy::bool_to_int_with_if,
clippy::module_name_repetitions,
clippy::empty_docs
clippy::empty_docs,
clippy::unnecessary_debug_formatting
)]
//TODO: