Skip to content

Commit d5b0a86

Browse files
authored
Merge pull request #1095 from muzarski/fix-clippy-1.82
clippy: ignore result_large_err clippy lint for Tablet::from_raw_tablet
2 parents 1c24ca0 + cebcb0c commit d5b0a86

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scylla/src/transport/locator/tablets.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,12 @@ pub(crate) struct Tablet {
210210
}
211211

212212
impl Tablet {
213+
// Ignore clippy lints here. Clippy suggests to
214+
// Box<> `Err` variant, because it's too large. It does not
215+
// make much sense to do so, looking at the caller of this function.
216+
// Tablet returned in `Err` variant is used as if no error appeared.
217+
// The only difference is that we use node ids to emit some debug logs.
218+
#[allow(clippy::result_large_err)]
213219
pub(crate) fn from_raw_tablet(
214220
raw_tablet: RawTablet,
215221
replica_translator: impl Fn(Uuid) -> Option<Arc<Node>>,

0 commit comments

Comments
 (0)