Skip to content

Commit

Permalink
Remove prettyassertions
Browse files Browse the repository at this point in the history
This has a transitive dependency that broke MSRV support
  • Loading branch information
TedDriggs committed Oct 2, 2024
1 parent 0a163af commit fdc50aa
Show file tree
Hide file tree
Showing 19 changed files with 7 additions and 44 deletions.
1 change: 0 additions & 1 deletion derive_builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ alloc = ["derive_builder_macro/alloc"]
derive_builder_macro = { version = "=0.20.1", path = "../derive_builder_macro" }

[dev-dependencies]
pretty_assertions = "0.6.1"
rustversion = "1.0.4"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
Expand Down
2 changes: 0 additions & 2 deletions derive_builder/tests/builder_field_custom.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#[macro_use]
extern crate pretty_assertions;
#[macro_use]
extern crate derive_builder;

use std::num::ParseIntError;
Expand Down
2 changes: 0 additions & 2 deletions derive_builder/tests/builder_name.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#[macro_use]
extern crate pretty_assertions;
#[macro_use]
extern crate derive_builder;

#[derive(Debug, PartialEq, Default, Builder, Clone)]
Expand Down
14 changes: 7 additions & 7 deletions derive_builder/tests/compile-fail/rename_setter_struct_level.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#[macro_use]
extern crate pretty_assertions;
#[macro_use]
extern crate derive_builder;

#[derive(Debug, PartialEq, Default, Builder, Clone)]
Expand All @@ -17,9 +15,11 @@ fn main() {
.build()
.unwrap();

assert_eq!(x,
Lorem {
ipsum: "ipsum",
dolor: "dolor",
});
assert_eq!(
x,
Lorem {
ipsum: "ipsum",
dolor: "dolor",
}
);
}
2 changes: 0 additions & 2 deletions derive_builder/tests/custom_constructor.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#[macro_use]
extern crate pretty_assertions;
#[macro_use]
extern crate derive_builder;

#[derive(Debug, PartialEq, Eq, Builder)]
Expand Down
2 changes: 0 additions & 2 deletions derive_builder/tests/custom_default.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#[macro_use]
extern crate pretty_assertions;
#[macro_use]
extern crate derive_builder;

mod field_level {
Expand Down
2 changes: 0 additions & 2 deletions derive_builder/tests/generic_structs.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#[macro_use]
extern crate pretty_assertions;
#[macro_use]
extern crate derive_builder;

use std::clone::Clone;
Expand Down
2 changes: 0 additions & 2 deletions derive_builder/tests/generic_with_default.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#[macro_use]
extern crate derive_builder;
#[macro_use]
extern crate pretty_assertions;

/// Struct taken from `@shockham/caper` to make sure we emit the correct
/// code for struct-level defaults in tandem with generics.
Expand Down
2 changes: 0 additions & 2 deletions derive_builder/tests/lifetime.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#[macro_use]
extern crate pretty_assertions;
#[macro_use]
extern crate derive_builder;

#[derive(Debug, PartialEq, Default, Builder, Clone)]
Expand Down
2 changes: 0 additions & 2 deletions derive_builder/tests/setter_custom.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#[macro_use]
extern crate pretty_assertions;
#[macro_use]
extern crate derive_builder;

#[derive(Debug, PartialEq, Default, Builder, Clone)]
Expand Down
2 changes: 0 additions & 2 deletions derive_builder/tests/setter_extend.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#[macro_use]
extern crate pretty_assertions;
#[macro_use]
extern crate derive_builder;

use std::collections::HashMap;
Expand Down
2 changes: 0 additions & 2 deletions derive_builder/tests/setter_into.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#[macro_use]
extern crate pretty_assertions;
#[macro_use]
extern crate derive_builder;

#[derive(Debug, PartialEq, Default, Builder, Clone)]
Expand Down
2 changes: 0 additions & 2 deletions derive_builder/tests/setter_name.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#[macro_use]
extern crate pretty_assertions;
#[macro_use]
extern crate derive_builder;

#[derive(Debug, PartialEq, Default, Builder, Clone)]
Expand Down
2 changes: 0 additions & 2 deletions derive_builder/tests/setter_pattern.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#[macro_use]
extern crate pretty_assertions;
#[macro_use]
extern crate derive_builder;

#[derive(Debug, PartialEq, Default, Builder, Clone)]
Expand Down
2 changes: 0 additions & 2 deletions derive_builder/tests/setter_prefix.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#[macro_use]
extern crate pretty_assertions;
#[macro_use]
extern crate derive_builder;

#[derive(Debug, PartialEq, Default, Builder, Clone)]
Expand Down
2 changes: 0 additions & 2 deletions derive_builder/tests/setter_strip_option.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#[macro_use]
extern crate pretty_assertions;
#[macro_use]
extern crate derive_builder;

#[derive(Debug, PartialEq, Default, Builder, Clone)]
Expand Down
2 changes: 0 additions & 2 deletions derive_builder/tests/setter_visibility.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#[macro_use]
extern crate pretty_assertions;
#[macro_use]
extern crate derive_builder;

pub mod foo {
Expand Down
2 changes: 0 additions & 2 deletions derive_builder/tests/skip-setter.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// https://github.com/colin-kiegel/rust-derive-builder/issues/15
#[macro_use]
extern crate pretty_assertions;
#[macro_use]
extern crate derive_builder;

#[derive(Debug, Clone, PartialEq)]
Expand Down
4 changes: 0 additions & 4 deletions derive_builder_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ extern crate proc_macro2;
extern crate syn;
#[macro_use]
extern crate quote;
#[cfg(test)]
#[macro_use]
extern crate pretty_assertions;

mod block;
mod build_method;
mod builder;
Expand Down

0 comments on commit fdc50aa

Please sign in to comment.