Commit b906a8b
committed
std::str: remove .as_mut_buf & rewrite/simplify
`.as_mut_buf` was used exactly once, in `.push_char` which could be
written in a simpler way, using the `&mut ~[u8]` that it already
retrieved. In the rare situation when someone really needs
`.as_mut_buf`-like functionality (getting a `*mut u8`), they can go via
`str::raw::as_owned_vec`..push_char.1 parent 17ac2aa commit b906a8b
1 file changed
+6
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2555 | 2555 | | |
2556 | 2556 | | |
2557 | 2557 | | |
2558 | | - | |
2559 | | - | |
2560 | | - | |
2561 | | - | |
2562 | | - | |
2563 | | - | |
2564 | | - | |
2565 | | - | |
2566 | 2558 | | |
2567 | 2559 | | |
2568 | 2560 | | |
| |||
2591 | 2583 | | |
2592 | 2584 | | |
2593 | 2585 | | |
2594 | | - | |
| 2586 | + | |
| 2587 | + | |
2595 | 2588 | | |
2596 | 2589 | | |
2597 | 2590 | | |
2598 | | - | |
2599 | | - | |
2600 | | - | |
2601 | | - | |
2602 | | - | |
2603 | | - | |
| 2591 | + | |
| 2592 | + | |
| 2593 | + | |
| 2594 | + | |
2604 | 2595 | | |
2605 | 2596 | | |
2606 | 2597 | | |
| |||
2668 | 2659 | | |
2669 | 2660 | | |
2670 | 2661 | | |
2671 | | - | |
2672 | | - | |
2673 | | - | |
2674 | | - | |
2675 | | - | |
2676 | | - | |
2677 | | - | |
2678 | | - | |
2679 | 2662 | | |
2680 | 2663 | | |
2681 | 2664 | | |
| |||
0 commit comments