aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmīls Piņķis <emils@mullvad.net>2019-01-22 11:10:01 +0000
committerEmīls Piņķis <emils@mullvad.net>2019-01-22 12:53:23 +0000
commitf5d1eb334a65f3123f58e96b0a53b850e398d78c (patch)
tree61f32cbbea59c23595c9221d8ff86f5dd445524b
parentc38b456483a745752e3ad9c0307c71781d8985fe (diff)
Formatting changes
-rw-r--r--nftnl/examples/filter-ethernet.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/nftnl/examples/filter-ethernet.rs b/nftnl/examples/filter-ethernet.rs
index c2b977b..ef80820 100644
--- a/nftnl/examples/filter-ethernet.rs
+++ b/nftnl/examples/filter-ethernet.rs
@@ -84,7 +84,7 @@ fn main() -> Result<(), Error> {
// Load a pseudo-random 32 bit unsigned integer into the netfilter register.
random_rule.add_expr(&nft_expr!(meta random))?;
// Check if the random integer is larger than `u32::MAX/2`, thus having 50% chance of success.
- random_rule.add_expr(&nft_expr!(cmp > (::std::u32::MAX/2).to_be()))?;
+ random_rule.add_expr(&nft_expr!(cmp > (::std::u32::MAX / 2).to_be()))?;
// Add a second counter. This will only be incremented for the packets passing the random check.
random_rule.add_expr(&nft_expr!(counter))?;