Skip to content

Commit 5213afe

Browse files
Make CI work again
Co-authored-by: Sebastian Thiel <sebastian.thiel@icloud.com>
1 parent 6bdb331 commit 5213afe

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

gix-packetline/src/async_io/sidebands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ where
246246
match this.state {
247247
State::Idle { ref mut parent } => {
248248
let parent = parent.take().expect("parent to be present here");
249-
let inactive = parent as *mut _;
249+
let inactive = std::ptr::from_mut(parent);
250250
this.state = State::ReadLine {
251251
read_line: parent.read_line().boxed_local(),
252252
parent_inactive: Some(inactive),

gix/tests/gix/repository/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,12 @@ mod dirwalk {
136136
#[test]
137137
fn size_in_memory() {
138138
let actual_size = std::mem::size_of::<Repository>();
139-
let limit = 1250;
139+
// Windows currently lays out `Repository` slightly larger than other platforms.
140+
// Keep the tighter limit elsewhere so regular growth still gets noticed quickly.
141+
let limit = if cfg!(windows) { 1280 } else { 1250 };
140142
assert!(
141143
actual_size <= limit,
142-
"size of Repository shouldn't change without us noticing, it's meant to be cloned: should have been below {limit:?}, was {actual_size} (bigger on windows)"
144+
"size of Repository shouldn't change without us noticing, it's meant to be cloned: should have been below {limit:?}, was {actual_size}"
143145
);
144146
}
145147

0 commit comments

Comments
 (0)