From 9a3762a768a1f7b8e5eba8cee4f0f883bbd07892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 6 Apr 2017 18:21:54 +0200 Subject: [PATCH] size: Avoid '_' as a pattern variable in 'match'. * guix/scripts/size.scm (display-profile, profile->page-map): Don't use '_' as a 'match' pattern variable. --- guix/scripts/size.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/guix/scripts/size.scm b/guix/scripts/size.scm index ea259f3758..f612dae700 100644 --- a/guix/scripts/size.scm +++ b/guix/scripts/size.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2015, 2016 Ludovic Courtès +;;; Copyright © 2015, 2016, 2017 Ludovic Courtès ;;; ;;; This file is part of GNU Guix. ;;; @@ -91,7 +91,8 @@ (define MiB (expt 2 20)) (* 100. (/ self whole 1.))))) (sort profile (match-lambda* - ((($ _ _ total1) ($ _ _ total2)) + ((($ name1 self1 total1) + ($ name2 self2 total2)) (> total1 total2))))) (format port (_ "total: ~,1f MiB~%") (/ whole MiB 1.)))) @@ -200,7 +201,8 @@ (define data 0 (sort profiles (match-lambda* - ((($ _ _ total1) ($ _ _ total2)) + ((($ name1 self1 total1) + ($ name2 self2 total2)) (> total1 total2)))))) ;; TRANSLATORS: This is the title of a graph, meaning that the graph