Skip to content

Commit

Permalink
fix: deprecated 'use Bitwise' (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvic committed Jan 2, 2023
1 parent cc26ae6 commit a980d57
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/bson/decimal128.ex
Expand Up @@ -3,7 +3,7 @@ defmodule BSON.Decimal128 do
see https://en.wikipedia.org/wiki/Decimal128_floating-point_format
"""

use Bitwise
import Bitwise

@signed_bit_mask 1 <<< 63
@combination_mask 0x1F
Expand Down
1 change: 0 additions & 1 deletion lib/mongo.ex
Expand Up @@ -54,7 +54,6 @@ defmodule Mongo do

require Logger

use Bitwise
use Mongo.Messages

import Mongo.Session, only: [in_read_session: 3, in_write_session: 3]
Expand Down
2 changes: 1 addition & 1 deletion lib/mongo/pbkdf2.ex
Expand Up @@ -11,7 +11,7 @@ defmodule Mongo.PBKDF2 do
see http://tools.ietf.org/html/rfc2898#section-5.2
"""

use Bitwise
import Bitwise
@max_length bsl(1, 32) - 1

@doc """
Expand Down
2 changes: 1 addition & 1 deletion lib/mongo/streaming_hello_monitor.ex
Expand Up @@ -12,7 +12,7 @@ defmodule Mongo.StreamingHelloMonitor do
require Logger

use GenServer
use Bitwise
import Bitwise

alias Mongo.Events.ServerHeartbeatFailedEvent
alias Mongo.Events.ServerHeartbeatStartedEvent
Expand Down
1 change: 0 additions & 1 deletion lib/mongo_db_connection/utils.ex
Expand Up @@ -5,7 +5,6 @@ defmodule Mongo.MongoDBConnection.Utils do

import Kernel, except: [send: 2]
import Mongo.Messages
use Bitwise

# @reply_cursor_not_found 0x1
# @reply_query_failure 0x2
Expand Down

0 comments on commit a980d57

Please sign in to comment.