Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi committed Dec 25, 2024
1 parent cc89cd5 commit af579db
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion wirebson/array.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ import (
"sort"
"strconv"

"go.mongodb.org/mongo-driver/v2/bson"

"github.com/FerretDB/wire/internal/util/lazyerrors"
"github.com/FerretDB/wire/internal/util/must"
"go.mongodb.org/mongo-driver/v2/bson"
)

// Array represents a BSON array in the (partially) decoded form.
Expand Down
3 changes: 2 additions & 1 deletion wirebson/bson_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1297,7 +1297,8 @@ func testRawDocument(t *testing.T, rawDoc RawDocument) {
}

b, err := json.Marshal(doc)
require.NoError(t, err)
d, _ := toDriver(doc)
require.NoError(t, err, "%s\n%#v", doc.LogMessage(), d)

var doc2 *Document
err = json.Unmarshal(b, &doc2)
Expand Down
3 changes: 2 additions & 1 deletion wirebson/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ import (
"log/slog"
"slices"

"go.mongodb.org/mongo-driver/v2/bson"

"github.com/FerretDB/wire/internal/util/lazyerrors"
"github.com/FerretDB/wire/internal/util/must"
"go.mongodb.org/mongo-driver/v2/bson"
)

// field represents a single Document field in the (partially) decoded form.
Expand Down

0 comments on commit af579db

Please sign in to comment.