From 327c9306f6425df463732cf4ad9a5b3850fe9b32 Mon Sep 17 00:00:00 2001 From: Georges Palauqui Date: Wed, 28 Aug 2024 14:32:42 +0200 Subject: [PATCH] fix ci --- rust-toolchain.toml | 2 +- stratum-v1/examples/tokio-cli.rs | 34 ++++++++++++++++---------------- stratum-v1/src/error.rs | 2 +- stratum-v1/src/lib.rs | 6 +++--- 4 files changed, 22 insertions(+), 22 deletions(-) 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;