Skip to content

Commit 473a866

Browse files
committed
Fix long lines
1 parent 7acf89c commit 473a866

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/libcore/result.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ pure fn to_either<T: Copy, U: Copy>(res: &Result<U, T>) -> Either<T, U> {
101101
* ok(parse_bytes(buf))
102102
* }
103103
*/
104-
fn chain<T, U: Copy, V: Copy>(+res: Result<T, V>, op: fn(+t: T) -> Result<U, V>)
105-
-> Result<U, V> {
104+
fn chain<T, U: Copy, V: Copy>(+res: Result<T, V>, op: fn(+t: T)
105+
-> Result<U, V>) -> Result<U, V> {
106106
// XXX: Should be writable with move + match
107107
if res.is_ok() {
108108
op(unwrap(res))
@@ -309,7 +309,7 @@ fn map_opt<T,U:Copy,V:Copy>(
309309
* to accommodate an error like the vectors being of different lengths.
310310
*/
311311
fn map_vec2<S,T,U:Copy,V:Copy>(ss: &[S], ts: &[T],
312-
op: fn((&S),(&T)) -> Result<V,U>) -> Result<~[V],U> {
312+
op: fn((&S),(&T)) -> Result<V,U>) -> Result<~[V],U> {
313313

314314
assert vec::same_length(ss, ts);
315315
let n = vec::len(ts);

src/libstd/json.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,8 @@ mod tests {
10481048
mk_dict(~[
10491049
(~"a", Null),
10501050
(~"b", Boolean(true))]));
1051-
assert eq(result::get(&from_str(~"\n{ \"a\": null, \"b\" : true }\n")),
1051+
assert eq(result::get(&from_str(
1052+
~"\n{ \"a\": null, \"b\" : true }\n")),
10521053
mk_dict(~[
10531054
(~"a", Null),
10541055
(~"b", Boolean(true))]));

0 commit comments

Comments
 (0)