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

1.2.3 #105

Merged
merged 1 commit into from
Jun 26, 2022
Merged

1.2.3 #105

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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Changelog
## 1.2.3 - 26/06/2022
### Misc
- Updated dependencies. partially by [@tilman19](https://github.com/aviramha/ormsgpack/pull/101)
- Handle clippy warnings.


## 1.2.2 - 19/4/2022
### Misc
- Update dependencies
Expand Down
90 changes: 45 additions & 45 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,12 +333,11 @@ pub unsafe extern "C" fn unpackb(

let num_args = PyTuple_GET_SIZE(args);
if unlikely!(num_args != 1) {
let msg;
if num_args > 1 {
msg = Cow::Borrowed("unpackb() accepts only 1 positional argument");
let msg = if num_args > 1 {
Cow::Borrowed("unpackb() accepts only 1 positional argument")
} else {
msg = Cow::Borrowed("unpackb() missing 1 required positional argument: 'obj'")
}
Cow::Borrowed("unpackb() missing 1 required positional argument: 'obj'")
};
return raise_unpackb_exception(deserialize::DeserializeError::new(msg));
}

Expand Down
2 changes: 1 addition & 1 deletion src/serialize/bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl BytesSerializer {
}
}

impl<'p> Serialize for BytesSerializer {
impl Serialize for BytesSerializer {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
Expand Down
4 changes: 2 additions & 2 deletions src/serialize/dataclass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl DataclassFastSerializer {
}
}

impl<'p> Serialize for DataclassFastSerializer {
impl Serialize for DataclassFastSerializer {
#[inline(never)]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
Expand Down Expand Up @@ -117,7 +117,7 @@ impl DataclassFallbackSerializer {
}
}

impl<'p> Serialize for DataclassFallbackSerializer {
impl Serialize for DataclassFallbackSerializer {
#[inline(never)]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
Expand Down
6 changes: 3 additions & 3 deletions src/serialize/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl Date {
}
}
}
impl<'p> Serialize for Date {
impl Serialize for Date {
#[inline(never)]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
Expand Down Expand Up @@ -114,7 +114,7 @@ impl Time {
}
}

impl<'p> Serialize for Time {
impl Serialize for Time {
#[inline(never)]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
Expand Down Expand Up @@ -263,7 +263,7 @@ impl DateTime {
}
}

impl<'p> Serialize for DateTime {
impl Serialize for DateTime {
#[inline(never)]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
Expand Down
2 changes: 1 addition & 1 deletion src/serialize/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl DefaultSerializer {
}
}

impl<'p> Serialize for DefaultSerializer {
impl Serialize for DefaultSerializer {
#[inline(never)]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
Expand Down
4 changes: 2 additions & 2 deletions src/serialize/dict.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl Dict {
}
}

impl<'p> Serialize for Dict {
impl Serialize for Dict {
#[inline(never)]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
Expand Down Expand Up @@ -256,7 +256,7 @@ impl DictNonStrKey {
}
}

impl<'p> Serialize for DictNonStrKey {
impl Serialize for DictNonStrKey {
#[inline(never)]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
Expand Down
4 changes: 2 additions & 2 deletions src/serialize/int.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl IntSerializer {
}
}

impl<'p> Serialize for IntSerializer {
impl Serialize for IntSerializer {
#[inline]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
Expand All @@ -40,7 +40,7 @@ impl UIntSerializer {
}
}

impl<'p> Serialize for UIntSerializer {
impl Serialize for UIntSerializer {
#[cold]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
Expand Down
2 changes: 1 addition & 1 deletion src/serialize/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl ListSerializer {
}
}

impl<'p> Serialize for ListSerializer {
impl Serialize for ListSerializer {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
Expand Down
Loading