Skip to content

Commit 5849096

Browse files
authored
update log (#2766)
1 parent 1032ccc commit 5849096

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

asyncgit/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ It wraps libraries like git2 and gix.
3333
clippy::module_name_repetitions,
3434
clippy::must_use_candidate,
3535
clippy::missing_errors_doc,
36-
clippy::empty_docs
36+
clippy::empty_docs,
37+
clippy::unnecessary_debug_formatting
3738
)]
3839
//TODO:
3940
#![allow(

asyncgit/src/sync/submodules.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,26 +115,26 @@ pub fn submodule_parent_info(
115115
let repo = repo(repo_path)?;
116116
let repo_wd = work_dir(&repo)?.to_path_buf();
117117

118-
log::trace!("[sub] repo_wd: {:?}", repo_wd);
118+
log::trace!("[sub] repo_wd: {repo_wd:?}");
119119
log::trace!("[sub] repo_path: {:?}", repo.path());
120120

121121
if let Some(parent_path) = repo_wd.parent() {
122-
log::trace!("[sub] parent_path: {:?}", parent_path);
122+
log::trace!("[sub] parent_path: {parent_path:?}");
123123

124124
if let Ok(parent) = Repository::open_ext(
125125
parent_path,
126126
RepositoryOpenFlags::FROM_ENV,
127127
Vec::<&Path>::new(),
128128
) {
129129
let parent_wd = work_dir(&parent)?.to_path_buf();
130-
log::trace!("[sub] parent_wd: {:?}", parent_wd);
130+
log::trace!("[sub] parent_wd: {parent_wd:?}");
131131

132132
let submodule_name = repo_wd
133133
.strip_prefix(parent_wd)?
134134
.to_string_lossy()
135135
.to_string();
136136

137-
log::trace!("[sub] submodule_name: {:?}", submodule_name);
137+
log::trace!("[sub] submodule_name: {submodule_name:?}");
138138

139139
if let Ok(submodule) =
140140
parent.find_submodule(&submodule_name)

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
clippy::multiple_crate_versions,
5353
clippy::bool_to_int_with_if,
5454
clippy::module_name_repetitions,
55-
clippy::empty_docs
55+
clippy::empty_docs,
56+
clippy::unnecessary_debug_formatting
5657
)]
5758

5859
//TODO:

0 commit comments

Comments
 (0)