Skip to content

Commit

Permalink
Fix clippy::range_plus_one
Browse files Browse the repository at this point in the history
  • Loading branch information
SchahinRohani committed Oct 8, 2024
1 parent d418132 commit f683605
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ build --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect
build --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect

# TODO(aaronmondal): Extend these flags until we can run with clippy::pedantic.
build --@rules_rust//:clippy_flags=-Dwarnings,-Dclippy::uninlined_format_args,-Dclippy::manual_string_new,-Dclippy::manual_let_else,-Dclippy::single_match_else,-Dclippy::redundant_closure_for_method_calls,-Dclippy::semicolon_if_nothing_returned,-Dclippy::unreadable_literal
build --@rules_rust//:clippy_flags=-Dwarnings,-Dclippy::uninlined_format_args,-Dclippy::manual_string_new,-Dclippy::manual_let_else,-Dclippy::single_match_else,-Dclippy::redundant_closure_for_method_calls,-Dclippy::semicolon_if_nothing_returned,-Dclippy::unreadable_literal,-Dclippy::range_plus_one
build --@rules_rust//:clippy.toml=//:clippy.toml

test --@rules_rust//:rustfmt.toml=//:.rustfmt.toml
Expand Down
2 changes: 1 addition & 1 deletion nativelink-store/tests/s3_store_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ async fn simple_update_ac() -> Result<(), Error> {
let spawn_fut = spawn!("simple_update_ac", async move {
tokio::try_join!(update_fut, async move {
for i in 0..CONTENT_LENGTH {
tx.send(send_data_copy.slice(i..(i + 1))).await?;
tx.send(send_data_copy.slice(i..=i)).await?;
}
tx.send_eof()
})
Expand Down

0 comments on commit f683605

Please sign in to comment.