Skip to content

Commit

Permalink
refactor(rust/binary): move a comment
Browse files Browse the repository at this point in the history
Signed-off-by: knqyf263 <[email protected]>
  • Loading branch information
knqyf263 committed Apr 26, 2024
1 parent 5c58e5c commit eebd61e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/dependency/parser/rust/binary/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (p *Parser) Parse(r xio.ReadSeekerAt) ([]types.Library, []types.Dependency,
ID: pkgID,
Name: pkg.Name,
Version: pkg.Version,
Relationship: lo.Ternary(pkg.Root, types.RelationshipRoot, types.RelationshipUnknown),
Relationship: lo.Ternary(pkg.Root, types.RelationshipRoot, types.RelationshipUnknown), // TODO: Determine the direct dependencies by checking the dependencies of the root crate
})

var childDeps []string
Expand Down
2 changes: 1 addition & 1 deletion pkg/dependency/parser/rust/binary/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var (
ID: "[email protected]",
Name: "library_crate",
Version: "0.1.0",
Relationship: types.RelationshipUnknown, // TODO: Determine it by checking the dependencies of the root crate
Relationship: types.RelationshipUnknown,
},
}

Expand Down

0 comments on commit eebd61e

Please sign in to comment.