-
-
Notifications
You must be signed in to change notification settings - Fork 178
Commit 8204bb2
Additional error data in Result + some API cleanup and clarification (#78)
* Rename the module holding the Result more logically
* Rewrite Completion as a struct
* Add support for error payloads
* Clarify result module documentation
* Allow error data to depend on the error status
* Clean up usage of Result
- Replace Result<()> with Result
- Use new facility for cleanly reporting error data
- Fix a few incorrect APIs (bad lifetime, error/warning confusion)
- Drop some usage of core::result::Result, qualify the rest better
* Fix lifetime names
* Add warning support to test_string
* Apply rustfmt
* Plural is probably best after all
* Move background color sanity check to an assertion1 parent bfd2f4f commit 8204bb2
File tree
30 files changed
+460
-337
lines changed- src
- data_types
- error
- proto
- console
- pointer
- text
- media
- file
- result
- table
- uefi-exts/src
- uefi-logger/src
- uefi-services/src
- uefi-test-runner/src
- proto
- console
30 files changed
+460
-337
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 | - | ||
27 | + | ||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
| |||
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
80 | - | ||
80 | + | ||
81 | 81 |
| |
82 | 82 |
| |
83 | 83 |
| |
|
Lines changed: 0 additions & 55 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
39 | - | ||
40 | - | ||
39 | + | ||
40 | + | ||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 | - | ||
5 | + | ||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
|
Lines changed: 15 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 | - | ||
71 | + | ||
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
| |||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
82 | - | ||
82 | + | ||
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
| |||
91 | 91 |
| |
92 | 92 |
| |
93 | 93 |
| |
94 | - | ||
94 | + | ||
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
98 | 98 |
| |
99 | 99 |
| |
100 | 100 |
| |
101 | - | ||
101 | + | ||
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
| |||
286 | 286 |
| |
287 | 287 |
| |
288 | 288 |
| |
289 | - | ||
289 | + | ||
290 | 290 |
| |
291 | 291 |
| |
292 | 292 |
| |
293 | 293 |
| |
294 | 294 |
| |
295 | - | ||
295 | + | ||
296 | 296 |
| |
297 | 297 |
| |
298 | 298 |
| |
| |||
401 | 401 |
| |
402 | 402 |
| |
403 | 403 |
| |
404 | - | ||
405 | - | ||
404 | + | ||
405 | + | ||
406 | 406 |
| |
407 | 407 |
| |
408 | 408 |
| |
409 | 409 |
| |
410 | - | ||
410 | + | ||
411 | 411 |
| |
412 | 412 |
| |
413 | 413 |
| |
| |||
479 | 479 |
| |
480 | 480 |
| |
481 | 481 |
| |
482 | - | ||
482 | + | ||
483 | 483 |
| |
484 | 484 |
| |
485 | 485 |
| |
| |||
492 | 492 |
| |
493 | 493 |
| |
494 | 494 |
| |
495 | - | ||
495 | + | ||
496 | 496 |
| |
497 | 497 |
| |
498 | 498 |
| |
| |||
504 | 504 |
| |
505 | 505 |
| |
506 | 506 |
| |
507 | - | ||
507 | + | ||
508 | 508 |
| |
509 | 509 |
| |
510 | 510 |
| |
| |||
525 | 525 |
| |
526 | 526 |
| |
527 | 527 |
| |
528 | - | ||
528 | + | ||
529 | 529 |
| |
530 | 530 |
| |
531 | - | ||
531 | + | ||
532 | 532 |
| |
533 | 533 |
| |
534 | - | ||
534 | + | ||
535 | 535 |
| |
536 | 536 |
| |
537 | 537 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 | - | ||
27 | + | ||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
44 | - | ||
44 | + | ||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
|
Lines changed: 21 additions & 27 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 | - | ||
4 | + | ||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 | - | ||
40 | + | ||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| |||
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
62 | - | ||
62 | + | ||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 | - | ||
78 | + | ||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
85 | - | ||
85 | + | ||
86 | 86 |
| |
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
91 | - | ||
92 | - | ||
93 | - | ||
94 | - | ||
95 | - | ||
96 | - | ||
91 | + | ||
92 | + | ||
93 | + | ||
94 | + | ||
97 | 95 |
| |
98 | - | ||
99 | - | ||
100 | - | ||
101 | - | ||
102 | - | ||
96 | + | ||
97 | + | ||
98 | + | ||
99 | + | ||
103 | 100 |
| |
104 | 101 |
| |
105 | 102 |
| |
106 | 103 |
| |
107 | - | ||
108 | - | ||
109 | - | ||
110 | - | ||
111 | - | ||
112 | - | ||
104 | + | ||
105 | + | ||
106 | + | ||
107 | + | ||
113 | 108 |
| |
114 | - | ||
115 | - | ||
116 | - | ||
117 | - | ||
118 | - | ||
109 | + | ||
110 | + | ||
111 | + | ||
112 | + | ||
119 | 113 |
| |
120 | 114 |
| |
121 | 115 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 | - | ||
24 | + | ||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
41 | - | ||
41 | + | ||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
|
0 commit comments