File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ if (isIntegral!T)
41
41
}
42
42
}
43
43
44
- unittest
44
+ nothrow unittest
45
45
{
46
46
import std.array : array;
47
47
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ struct Varint
10
10
private ubyte index;
11
11
private ubyte _length;
12
12
13
- this (long value)
13
+ this (long value) nothrow
14
14
out { assert (_length > 0 ); }
15
15
do
16
16
{
@@ -39,11 +39,11 @@ struct Varint
39
39
this ._length = cast (ubyte ) encodingLength(value);
40
40
}
41
41
42
- @property bool empty() const { return index >= _length; }
43
- @property ubyte front() const { return opIndex (index); }
44
- void popFront () { ++ index; }
42
+ @property bool empty() nothrow const { return index >= _length; }
43
+ @property ubyte front() nothrow const { return opIndex (index); }
44
+ void popFront () nothrow { ++ index; }
45
45
46
- ubyte opIndex (size_t index) const
46
+ ubyte opIndex (size_t index) nothrow const
47
47
in { assert (index < _length); }
48
48
do
49
49
{
@@ -55,7 +55,7 @@ struct Varint
55
55
return result & 0x7F ;
56
56
}
57
57
58
- @property size_t length() const
58
+ @property size_t length() nothrow const
59
59
in { assert (index <= _length); }
60
60
do
61
61
{
You can’t perform that action at this time.
0 commit comments