Skip to content

Commit 2ef0e09

Browse files
committed
fix build
1 parent 1c012f4 commit 2ef0e09

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

git-repository/src/config/cache/access.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ impl Cache {
4545
}
4646

4747
/// Returns a user agent for use with servers.
48+
#[cfg(any(feature = "async-network-client", feature = "blocking-network-client"))]
4849
pub(crate) fn user_agent_tuple(&self) -> (&'static str, Option<Cow<'static, str>>) {
4950
let agent = self
5051
.user_agent

git-repository/tests/repository/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ mod worktree;
1111
#[test]
1212
fn size_in_memory() {
1313
let actual_size = std::mem::size_of::<Repository>();
14-
let limit = 864;
14+
let limit = 900;
1515
assert!(
1616
actual_size <= limit,
1717
"size of Repository shouldn't change without us noticing, it's meant to be cloned: should have been below {:?}, was {} (bigger on windows)",

0 commit comments

Comments
 (0)