Remove trivial splice() call

This commit is contained in:
Johannes Altmanninger
2024-12-15 17:27:00 +01:00
parent a88de9d345
commit b6c2a4c5db

View File

@@ -313,7 +313,7 @@ fn test_history_races() {
};
// Remove everything from this item on
let removed = list.splice(position.., []);
let removed = list.drain(position..);
for line in removed.into_iter().rev() {
println!("Item dropped from history: {line}");
}