@@ -10,7 +10,7 @@ use std::sync::Arc;
10
10
use crate :: { Map , Package , Set , Term , VersionSet } ;
11
11
12
12
/// Reporter trait.
13
- pub trait Reporter < P : Package , VS : VersionSet , M : Eq + Clone + Debug + Display > {
13
+ pub trait Reporter < P : Package , VS : VersionSet , M : Clone + Debug + Display > {
14
14
/// Output type of the report.
15
15
type Output ;
16
16
@@ -29,7 +29,7 @@ pub trait Reporter<P: Package, VS: VersionSet, M: Eq + Clone + Debug + Display>
29
29
/// Derivation tree resulting in the impossibility
30
30
/// to solve the dependencies of our root package.
31
31
#[ derive( Debug , Clone ) ]
32
- pub enum DerivationTree < P : Package , VS : VersionSet , M : Eq + Clone + Debug + Display > {
32
+ pub enum DerivationTree < P : Package , VS : VersionSet , M : Clone + Debug + Display > {
33
33
/// External incompatibility.
34
34
External ( External < P , VS , M > ) ,
35
35
/// Incompatibility derived from two others.
@@ -39,7 +39,7 @@ pub enum DerivationTree<P: Package, VS: VersionSet, M: Eq + Clone + Debug + Disp
39
39
/// Incompatibilities that are not derived from others,
40
40
/// they have their own reason.
41
41
#[ derive( Debug , Clone ) ]
42
- pub enum External < P : Package , VS : VersionSet , M : Eq + Clone + Debug + Display > {
42
+ pub enum External < P : Package , VS : VersionSet , M : Clone + Debug + Display > {
43
43
/// Initial incompatibility aiming at picking the root package for the first decision.
44
44
NotRoot ( P , VS :: V ) ,
45
45
/// There are no versions in the given set for this package.
@@ -52,7 +52,7 @@ pub enum External<P: Package, VS: VersionSet, M: Eq + Clone + Debug + Display> {
52
52
53
53
/// Incompatibility derived from two others.
54
54
#[ derive( Debug , Clone ) ]
55
- pub struct Derived < P : Package , VS : VersionSet , M : Eq + Clone + Debug + Display > {
55
+ pub struct Derived < P : Package , VS : VersionSet , M : Clone + Debug + Display > {
56
56
/// Terms of the incompatibility.
57
57
pub terms : Map < P , Term < VS > > ,
58
58
/// Indicate if that incompatibility is present multiple times
@@ -67,7 +67,7 @@ pub struct Derived<P: Package, VS: VersionSet, M: Eq + Clone + Debug + Display>
67
67
pub cause2 : Arc < DerivationTree < P , VS , M > > ,
68
68
}
69
69
70
- impl < P : Package , VS : VersionSet , M : Eq + Clone + Debug + Display > DerivationTree < P , VS , M > {
70
+ impl < P : Package , VS : VersionSet , M : Clone + Debug + Display > DerivationTree < P , VS , M > {
71
71
/// Get all packages referred to in the derivation tree.
72
72
pub fn packages ( & self ) -> Set < & P > {
73
73
let mut packages = Set :: default ( ) ;
@@ -167,7 +167,7 @@ impl<P: Package, VS: VersionSet, M: Eq + Clone + Debug + Display> DerivationTree
167
167
}
168
168
}
169
169
170
- impl < P : Package , VS : VersionSet , M : Eq + Clone + Debug + Display > Display for External < P , VS , M > {
170
+ impl < P : Package , VS : VersionSet , M : Clone + Debug + Display > Display for External < P , VS , M > {
171
171
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
172
172
match self {
173
173
Self :: NotRoot ( package, version) => {
@@ -211,7 +211,7 @@ impl<P: Package, VS: VersionSet, M: Eq + Clone + Debug + Display> Display for Ex
211
211
}
212
212
213
213
/// Trait for formatting outputs in the reporter.
214
- pub trait ReportFormatter < P : Package , VS : VersionSet , M : Eq + Clone + Debug + Display > {
214
+ pub trait ReportFormatter < P : Package , VS : VersionSet , M : Clone + Debug + Display > {
215
215
/// Output type of the report.
216
216
type Output ;
217
217
@@ -278,7 +278,7 @@ pub trait ReportFormatter<P: Package, VS: VersionSet, M: Eq + Clone + Debug + Di
278
278
#[ derive( Default , Debug ) ]
279
279
pub struct DefaultStringReportFormatter ;
280
280
281
- impl < P : Package , VS : VersionSet , M : Eq + Clone + Debug + Display > ReportFormatter < P , VS , M >
281
+ impl < P : Package , VS : VersionSet , M : Clone + Debug + Display > ReportFormatter < P , VS , M >
282
282
for DefaultStringReportFormatter
283
283
{
284
284
type Output = String ;
@@ -431,7 +431,7 @@ impl DefaultStringReporter {
431
431
fn build_recursive <
432
432
P : Package ,
433
433
VS : VersionSet ,
434
- M : Eq + Clone + Debug + Display ,
434
+ M : Clone + Debug + Display ,
435
435
F : ReportFormatter < P , VS , M , Output = String > ,
436
436
> (
437
437
& mut self ,
@@ -451,7 +451,7 @@ impl DefaultStringReporter {
451
451
fn build_recursive_helper <
452
452
P : Package ,
453
453
VS : VersionSet ,
454
- M : Eq + Clone + Debug + Display ,
454
+ M : Clone + Debug + Display ,
455
455
F : ReportFormatter < P , VS , M , Output = String > ,
456
456
> (
457
457
& mut self ,
@@ -540,7 +540,7 @@ impl DefaultStringReporter {
540
540
fn report_one_each <
541
541
P : Package ,
542
542
VS : VersionSet ,
543
- M : Eq + Clone + Debug + Display ,
543
+ M : Clone + Debug + Display ,
544
544
F : ReportFormatter < P , VS , M , Output = String > ,
545
545
> (
546
546
& mut self ,
@@ -564,7 +564,7 @@ impl DefaultStringReporter {
564
564
fn report_recurse_one_each <
565
565
P : Package ,
566
566
VS : VersionSet ,
567
- M : Eq + Clone + Debug + Display ,
567
+ M : Clone + Debug + Display ,
568
568
F : ReportFormatter < P , VS , M , Output = String > ,
569
569
> (
570
570
& mut self ,
@@ -617,7 +617,7 @@ impl DefaultStringReporter {
617
617
}
618
618
}
619
619
620
- impl < P : Package , VS : VersionSet , M : Eq + Clone + Debug + Display > Reporter < P , VS , M >
620
+ impl < P : Package , VS : VersionSet , M : Clone + Debug + Display > Reporter < P , VS , M >
621
621
for DefaultStringReporter
622
622
{
623
623
type Output = String ;
0 commit comments