diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 6b43ec9aa..157b66f1a 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -28,7 +28,7 @@ jobs: with: out-type: Lcov args: '--avoid-cfg-tarpaulin' - version: '0.15.0' + version: '0.22.0' - name: Coveralls Upload diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 000000000..cccf9d925 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1 @@ +indent_style = "Block" diff --git a/src/lib.rs b/src/lib.rs index a3656323a..461eab742 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -89,4 +89,4 @@ pub use self::server::{CoAPServer, Server}; pub mod client; pub mod message; mod observer; -pub mod server; \ No newline at end of file +pub mod server; diff --git a/src/observer.rs b/src/observer.rs index caf900177..ab002d1a7 100644 --- a/src/observer.rs +++ b/src/observer.rs @@ -149,7 +149,10 @@ impl Observer { let mut response2 = response.clone(); response2.message.payload = resource.payload.clone(); response2.message.set_observe_value(resource.sequence); - response2.message.header.set_type(MessageType::NonConfirmable); + response2 + .message + .header + .set_type(MessageType::NonConfirmable); self.send_message(®ister_address, &response2.message) .await; }