We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 747fca4 commit 48c39d4Copy full SHA for 48c39d4
lib/protobuf/wire/varint.ex
@@ -43,7 +43,7 @@ defmodule Protobuf.Wire.Varint do
43
iex> Protobuf.Wire.Varint.encode(1_234_567)
44
[<<135>>, <<173>>, 75]
45
"""
46
- use Bitwise
+ import Bitwise
47
48
@max_bits 64
49
@mask64 bsl(1, @max_bits) - 1
lib/protobuf/wire/zigzag.ex
@@ -1,7 +1,7 @@
1
defmodule Protobuf.Wire.Zigzag do
2
@moduledoc false
3
4
- use Bitwise, skip_operators: true
5
6
@spec encode(integer) :: integer
7
def encode(n) when n >= 0, do: n * 2
0 commit comments