diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 8e1fca5..53c24f6 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -3,6 +3,6 @@ # Keep this in sync. with the CI. [toolchain] -channel = "1.74" +channel = "1.75" profile = "default" targets = ["thumbv7em-none-eabihf"] diff --git a/stratum-v1/examples/tokio-cli.rs b/stratum-v1/examples/tokio-cli.rs index 915e101..e09f857 100644 --- a/stratum-v1/examples/tokio-cli.rs +++ b/stratum-v1/examples/tokio-cli.rs @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: © 2024 Foundation Devices, Inc. // SPDX-License-Identifier: GPL-3.0-or-later -#![allow(static_mut_refs)] +// #![allow(static_mut_refs)] use stratum_v1::{Client, Extensions, Message, Share, VersionRolling}; use heapless::{String, Vec}; use inquire::Select; -use log::{debug, error}; +use log::error; use std::{ net::{Ipv4Addr, SocketAddr}, str::FromStr, @@ -162,23 +162,23 @@ mod adapter { Self { inner } } - /// Consume the adapter, returning the inner object. - pub fn into_inner(self) -> T { - self.inner - } + // /// Consume the adapter, returning the inner object. + // pub fn into_inner(self) -> T { + // self.inner + // } } - impl FromTokio { - /// Borrow the inner object. - pub fn inner(&self) -> &T { - &self.inner - } - - /// Mutably borrow the inner object. - pub fn inner_mut(&mut self) -> &mut T { - &mut self.inner - } - } + // impl FromTokio { + // /// Borrow the inner object. + // pub fn inner(&self) -> &T { + // &self.inner + // } + + // /// Mutably borrow the inner object. + // pub fn inner_mut(&mut self) -> &mut T { + // &mut self.inner + // } + // } impl embedded_io::ErrorType for FromTokio { type Error = std::io::Error; diff --git a/stratum-v1/src/error.rs b/stratum-v1/src/error.rs index c6ad841..66b4fc3 100644 --- a/stratum-v1/src/error.rs +++ b/stratum-v1/src/error.rs @@ -73,7 +73,7 @@ pub enum Error { HexError(faster_hex::Error), } -impl core::error::Error for Error {} +// impl core::error::Error for Error {} impl core::fmt::Display for Error { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { diff --git a/stratum-v1/src/lib.rs b/stratum-v1/src/lib.rs index f996beb..3a2c79e 100644 --- a/stratum-v1/src/lib.rs +++ b/stratum-v1/src/lib.rs @@ -6,9 +6,9 @@ //! This library provides client side functions to create requests and parse responses for Stratum v1 protocol. #![no_std] -#![allow(static_mut_refs)] -#![allow(stable_features)] // remove this once rust 1.81 is stable -#![feature(error_in_core)] +// #![allow(static_mut_refs)] +// #![allow(stable_features)] // remove this once rust 1.81 is stable +// #![feature(error_in_core)] #![macro_use] pub(crate) mod fmt;