Commit cf9fd60
authored
Rollup merge of rust-lang#56363 - Lucretiel:patch-3, r=shepmaster
Defactored Bytes::read
Removed unneeded refactoring of read_one_byte, which removed the unneeded dynamic dispatch (`dyn Read`) used by that function.
This function is only used in one place in the entire Rust codebase; there doesn't seem to be a reason for it to exist (and there especially doesn't seem to be a reason for it to use dynamic dispatch)1 file changed
+10
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| 274 | + | |
274 | 275 | | |
275 | 276 | | |
276 | 277 | | |
| |||
1936 | 1937 | | |
1937 | 1938 | | |
1938 | 1939 | | |
1939 | | - | |
1940 | | - | |
1941 | | - | |
1942 | | - | |
1943 | | - | |
1944 | | - | |
1945 | | - | |
1946 | | - | |
1947 | | - | |
1948 | | - | |
1949 | | - | |
1950 | | - | |
1951 | 1940 | | |
1952 | 1941 | | |
1953 | 1942 | | |
| |||
1965 | 1954 | | |
1966 | 1955 | | |
1967 | 1956 | | |
1968 | | - | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
1969 | 1966 | | |
1970 | 1967 | | |
1971 | 1968 | | |
| |||
0 commit comments