Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
ohaddahan committed Feb 10, 2024
1 parent 965ce7d commit 69f44ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/posts/rust-feature-flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ async fn boo(client: Arc<ProductionClient>) {
So in regular mode, `test-client` feature is not enabled.
And I just needed to add `--features test-client` to my `cargo test` commands.
While this looks dirty since I have duplicate code, if I would use the same `method`
it would still need two different implementations due to differences in `clients`.
it would still need two different internal implementations with a `match` clause due to differences in `clients`.

## References

Expand Down

0 comments on commit 69f44ce

Please sign in to comment.