From 5da0314169db355402e77d445fa0e7d1f3dca22e Mon Sep 17 00:00:00 2001 From: Jeong Yunwon Date: Sun, 17 Apr 2022 22:24:20 +0900 Subject: [PATCH] suppress cilppy warnings --- vm/src/builtins/function.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/vm/src/builtins/function.rs b/vm/src/builtins/function.rs index 14138e8657..b884fa9b5e 100644 --- a/vm/src/builtins/function.rs +++ b/vm/src/builtins/function.rs @@ -507,6 +507,7 @@ impl PyBoundMethod { impl PyBoundMethod { #[pymethod(magic)] fn repr(&self, vm: &VirtualMachine) -> PyResult { + #[allow(clippy::needless_match)] // False positive on nightly let funcname = if let Some(qname) = vm.get_attribute_opt(self.function.clone(), "__qualname__")? { Some(qname)