This could be 
```rust
loop {
    let x = match partials.pop() {
        None => break, // partials is empty, so we're finished
        Some(x) => x
    };
    let (total, lo) = twosum(total_so_far, x);
    // ...  
}
```

which avoids the needs for the `.expect` call.