[librsvg: 2/9] Avoid structure field patterns bound to wildcards



commit 2aaed61e94be0f3387cc04098b42794988520399
Author: Sven Neumann <sven svenfoo org>
Date:   Thu Jan 30 08:14:35 2020 +0100

    Avoid structure field patterns bound to wildcards
    
    https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_field_pattern

 rsvg_internals/src/error.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/error.rs b/rsvg_internals/src/error.rs
index 9a7c93cc..9c9ac603 100644
--- a/rsvg_internals/src/error.rs
+++ b/rsvg_internals/src/error.rs
@@ -57,7 +57,7 @@ impl fmt::Display for ValueErrorKind {
 
 impl<'a> From<BasicParseError<'a>> for ValueErrorKind {
     fn from(e: BasicParseError<'_>) -> ValueErrorKind {
-        let BasicParseError { kind, location: _ } = e;
+        let BasicParseError { kind, .. } = e;
 
         let msg = match kind {
             BasicParseErrorKind::UnexpectedToken(_) => "unexpected token",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]