Skip to content

Commit a980d57

Browse files
authored
fix: deprecated 'use Bitwise' (#168)
1 parent cc26ae6 commit a980d57

File tree

5 files changed

+3
-5
lines changed

5 files changed

+3
-5
lines changed

lib/bson/decimal128.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ defmodule BSON.Decimal128 do
33
see https://en.wikipedia.org/wiki/Decimal128_floating-point_format
44
"""
55

6-
use Bitwise
6+
import Bitwise
77

88
@signed_bit_mask 1 <<< 63
99
@combination_mask 0x1F

lib/mongo.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ defmodule Mongo do
5454

5555
require Logger
5656

57-
use Bitwise
5857
use Mongo.Messages
5958

6059
import Mongo.Session, only: [in_read_session: 3, in_write_session: 3]

lib/mongo/pbkdf2.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ defmodule Mongo.PBKDF2 do
1111
see http://tools.ietf.org/html/rfc2898#section-5.2
1212
"""
1313

14-
use Bitwise
14+
import Bitwise
1515
@max_length bsl(1, 32) - 1
1616

1717
@doc """

lib/mongo/streaming_hello_monitor.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defmodule Mongo.StreamingHelloMonitor do
1212
require Logger
1313

1414
use GenServer
15-
use Bitwise
15+
import Bitwise
1616

1717
alias Mongo.Events.ServerHeartbeatFailedEvent
1818
alias Mongo.Events.ServerHeartbeatStartedEvent

lib/mongo_db_connection/utils.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ defmodule Mongo.MongoDBConnection.Utils do
55

66
import Kernel, except: [send: 2]
77
import Mongo.Messages
8-
use Bitwise
98

109
# @reply_cursor_not_found 0x1
1110
# @reply_query_failure 0x2

0 commit comments

Comments
 (0)