diff --git a/clippy.toml b/clippy.toml index f3322b5..0f193ee 100644 --- a/clippy.toml +++ b/clippy.toml @@ -1 +1,5 @@ msrv = "1.88" +# BuilderResult is large because it's Result>. But rustc optimizes the struct layout +# of BuilderResult such that the error SessionBuilder and ok SessionBuilder take up the same space in memory, so the +# error variant is actually only 8 extra bytes. We increase the threshold here to effectively ignore clippy::result_large_err. +large-error-threshold = 160