Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bumped dependency of virtue to 0.0.7 #495

Merged
merged 1 commit into from
Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ description = "Implementation of #[derive(Encode, Decode)] for bincode"
proc-macro = true

[dependencies]
virtue = "0.0.6"
virtue = "0.0.7"
6 changes: 3 additions & 3 deletions derive/src/derive_enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl DeriveEnum {
pub fn generate_encode(self, generator: &mut Generator) -> Result<()> {
let crate_name = self.attributes.crate_name.as_str();
generator
.impl_for(format!("{}::Encode", crate_name))?
.impl_for(format!("{}::Encode", crate_name))
.modify_generic_constraints(|generics, where_constraints| {
for g in generics.iter_generics() {
where_constraints
Expand Down Expand Up @@ -214,7 +214,7 @@ impl DeriveEnum {
let enum_name = generator.target_name().to_string();

generator
.impl_for(format!("{}::Decode", crate_name))?
.impl_for(format!("{}::Decode", crate_name))
.modify_generic_constraints(|generics, where_constraints| {
for g in generics.iter_generics() {
where_constraints.push_constraint(g, format!("{}::Decode", crate_name)).unwrap();
Expand Down Expand Up @@ -302,7 +302,7 @@ impl DeriveEnum {
// Remember to keep this mostly in sync with generate_decode
let enum_name = generator.target_name().to_string();

generator.impl_for_with_lifetimes(format!("{}::BorrowDecode", crate_name), ["__de"])?
generator.impl_for_with_lifetimes(format!("{}::BorrowDecode", crate_name), ["__de"])
.modify_generic_constraints(|generics, where_constraints| {
for g in generics.iter_generics() {
where_constraints.push_constraint(g, format!("{}::enc::BorrowDecode", crate_name)).unwrap();
Expand Down
6 changes: 3 additions & 3 deletions derive/src/derive_struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ impl DeriveStruct {
let crate_name = attributes.crate_name;

generator
.impl_for(&format!("{}::Encode", crate_name))?
.impl_for(&format!("{}::Encode", crate_name))
.modify_generic_constraints(|generics, where_constraints| {
for g in generics.iter_generics() {
where_constraints
Expand Down Expand Up @@ -60,7 +60,7 @@ impl DeriveStruct {
let crate_name = attributes.crate_name;

generator
.impl_for(format!("{}::Decode", crate_name))?
.impl_for(format!("{}::Decode", crate_name))
.modify_generic_constraints(|generics, where_constraints| {
for g in generics.iter_generics() {
where_constraints.push_constraint(g, format!("{}::Decode", crate_name)).unwrap();
Expand Down Expand Up @@ -115,7 +115,7 @@ impl DeriveStruct {
let crate_name = attributes.crate_name;

generator
.impl_for_with_lifetimes(format!("{}::BorrowDecode", crate_name), ["__de"])?
.impl_for_with_lifetimes(format!("{}::BorrowDecode", crate_name), ["__de"])
.modify_generic_constraints(|generics, where_constraints| {
for g in generics.iter_generics() {
where_constraints.push_constraint(g, format!("{}::BorrowDecode", crate_name)).unwrap();
Expand Down