Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
aminalaee committed Jun 28, 2024
1 parent 6eacb15 commit 6f36bb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
# target: [aarch64, armv7, s390x, ppc64le]
target: [aarch64, armv7, ppc64le]
x target: [aarch64, armv7, ppc64le]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand Down
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ impl UUID {
};

#[new]
#[pyo3(signature = (hex=None, bytes=None, bytes_le=None, fields=None, int=None, version=None))]
fn new(
hex: Option<&str>,
bytes: Option<&Bound<'_, PyBytes>>,
Expand Down Expand Up @@ -308,6 +309,7 @@ impl UUID {
}

#[pyfunction]
#[pyo3(signature = (node=None, clock_seq=None))]
fn uuid1(node: Option<u64>, clock_seq: Option<u64>) -> PyResult<UUID> {
let node = match node {
Some(node) => node.to_ne_bytes(),
Expand Down Expand Up @@ -356,6 +358,7 @@ fn uuid5(namespace: &UUID, name: StringOrBytes) -> PyResult<UUID> {
}

#[pyfunction]
#[pyo3(signature = (node=None, timestamp=None, nanos=None))]
fn uuid6(node: Option<u64>, timestamp: Option<u64>, nanos: Option<u32>) -> PyResult<UUID> {
let node = match node {
Some(node) => node.to_ne_bytes(),
Expand All @@ -377,6 +380,7 @@ fn uuid6(node: Option<u64>, timestamp: Option<u64>, nanos: Option<u32>) -> PyRes
}

#[pyfunction]
#[pyo3(signature = (timestamp=None, nanos=None))]
fn uuid7(timestamp: Option<u64>, nanos: Option<u32>) -> PyResult<UUID> {
let uuid = match timestamp {
Some(timestamp) => {
Expand Down

0 comments on commit 6f36bb2

Please sign in to comment.