diff --git a/.gitea/workflows/check-format-and-test.yaml b/.gitea/workflows/check-format-and-test.yaml
index 4574188..f21e58b 100644
--- a/.gitea/workflows/check-format-and-test.yaml
+++ b/.gitea/workflows/check-format-and-test.yaml
@@ -5,13 +5,13 @@ on:
jobs:
build:
- container: docker.io/rust:1.79.0-alpine3.20
+ container: docker.io/rust:1.98.1-alpine3.24
steps:
- name: Install the dependencies
run: |
rustup component add clippy rustfmt &&
apk update &&
- apk add musl-dev git npm
+ apk add musl-dev git npm
- name: Checkout the code
uses: actions/checkout@v3
diff --git a/README.md b/README.md
index 208113c..3e371db 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
# R701 🕰️
[](https://www.rust-lang.org)
-[](https://brainmade.org)
+[](https://claude.com/product/claude-code)
[](https://choosealicense.com/licenses/agpl-3.0)
[](https://buymeacoffee.com/nicolabelluti)
@@ -30,10 +30,10 @@ If you want to read about this reverse engineering attempt, check out
```rust
use r701::R701;
-
+
fn main() {
let mut r701 = R701::connect("127.0.0.1:5005").unwrap();
-
+
println!("No\tMchn\tEnNo\t\tName\t\tMode\tIOMd\tDateTime\t");
r701.into_record_iter()
.unwrap()
@@ -46,7 +46,7 @@ If you want to read about this reverse engineering attempt, check out
.get_name(record.employee_id)
.unwrap()
.unwrap_or(format!("user #{}", record.employee_id));
-
+
println!(
"{:0>6}\t{}\t{:0>9}\t{: <10}\t{}\t{}\t{}",
id + 1,
diff --git a/src/r701.rs b/src/r701.rs
index e344958..f212790 100644
--- a/src/r701.rs
+++ b/src/r701.rs
@@ -9,6 +9,7 @@ pub struct R701 {
}
impl R701 {
+ #[allow(clippy::missing_errors_doc)]
pub fn connect(connection_info: impl ToSocketAddrs) -> Result {
// Create a new R701 struct
let mut new = Self {
@@ -21,6 +22,7 @@ impl R701 {
Ok(new)
}
+ #[allow(clippy::missing_errors_doc)]
pub fn request(&mut self, payload: &[u8; 12]) -> Result> {
// Create a blank request
let mut request = [0x55, 0xaa, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
@@ -40,6 +42,7 @@ impl R701 {
Ok(buffer.fill_buf()?.to_vec())
}
+ #[allow(clippy::missing_errors_doc)]
pub fn ping(&mut self) -> Result<()> {
// Create a request with a payload of `01 80 00 00 00 00 00 00 00 00 00
// 00` and get the response
@@ -54,6 +57,7 @@ impl R701 {
Ok(())
}
+ #[allow(clippy::missing_errors_doc)]
pub fn get_name(&mut self, id: u32) -> Result