Skip to content
This repository has been archived by the owner on Sep 21, 2024. It is now read-only.

Commit

Permalink
chore: Fix latest nightly lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsantell committed Feb 20, 2024
1 parent 39984db commit 55fe107
Show file tree
Hide file tree
Showing 18 changed files with 9 additions and 21 deletions.
3 changes: 1 addition & 2 deletions rust/noosphere-cli/src/native/commands/sphere/auth.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::{collections::BTreeMap, convert::TryFrom};

use anyhow::{anyhow, Result};
use cid::Cid;
use noosphere_core::context::{
Expand All @@ -8,6 +6,7 @@ use noosphere_core::context::{
use noosphere_core::data::{Did, Jwt, Link};
use noosphere_ucan::{store::UcanJwtStore, Ucan};
use serde_json::{json, Value};
use std::collections::BTreeMap;

use tokio_stream::StreamExt;

Expand Down
1 change: 0 additions & 1 deletion rust/noosphere-collections/src/hamt/bitfield.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use std::u64;
use byteorder::{BigEndian, ByteOrder};
use serde::de::{Deserialize, Deserializer};
use serde::ser::{Serialize, Serializer};
use serde_bytes;

#[derive(Debug, Clone, PartialEq, Eq, Copy)]
pub struct Bitfield([u64; 4]);
Expand Down
1 change: 0 additions & 1 deletion rust/noosphere-collections/src/hamt/pointer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

use anyhow::{anyhow, Result};
use std::cmp::Ordering;
use std::convert::{TryFrom, TryInto};

use cid::Cid;
use libipld_core::ipld::Ipld;
Expand Down
3 changes: 1 addition & 2 deletions rust/noosphere-common/src/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
//! producers to send messages to a single subscriber, with each message
//! able to be responded to by the subscriber.
use core::{fmt, result::Result};
use tokio;
use core::fmt;
use tokio::sync::{mpsc, mpsc::error::SendError, oneshot, oneshot::error::RecvError};

impl std::error::Error for ChannelError {}
Expand Down
3 changes: 1 addition & 2 deletions rust/noosphere-core/src/authority/authorization.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
use std::{convert::TryFrom, fmt::Display, str::FromStr};

use anyhow::{anyhow, Result};
use cid::Cid;
use libipld_core::{ipld::Ipld, raw::RawCodec};
use noosphere_storage::block_encode;
use noosphere_ucan::{chain::ProofChain, crypto::did::DidParser, store::UcanJwtStore, Ucan};
use std::{fmt::Display, str::FromStr};

#[cfg(doc)]
use noosphere_ucan::ipld::UcanIpld;
Expand Down
2 changes: 1 addition & 1 deletion rust/noosphere-core/src/data/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use noosphere_storage::BlockStore;
use noosphere_ucan::{chain::ProofChain, crypto::did::DidParser, store::UcanJwtStore, Ucan};
use serde::{de, ser, Deserialize, Serialize};
use std::fmt::Debug;
use std::{convert::TryFrom, fmt::Display, ops::Deref, str::FromStr};
use std::{fmt::Display, ops::Deref, str::FromStr};

use super::{Did, IdentitiesIpld, Jwt, Link, MemoIpld};

Expand Down
1 change: 0 additions & 1 deletion rust/noosphere-core/src/data/changelog.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use anyhow::Result;
use serde::{Deserialize, Serialize};
use std::default::Default;

#[cfg(doc)]
use crate::data::{Did, VersionedMapIpld};
Expand Down
1 change: 0 additions & 1 deletion rust/noosphere-core/src/stream/walk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use crate::{
};
use anyhow::Result;
use noosphere_storage::BlockStore;
use std::ops::Fn;
use tokio_stream::StreamExt;

/// Given a [VersionedMap], visit its changelog and all of its underlying entries
Expand Down
1 change: 0 additions & 1 deletion rust/noosphere-gateway/src/worker/name_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use std::{
collections::{BTreeMap, BTreeSet},
fmt::Display,
future::Future,
string::ToString,
sync::Arc,
time::Duration,
};
Expand Down
2 changes: 1 addition & 1 deletion rust/noosphere-ns/src/builder.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{dht::DhtConfig, name_system::NameSystem, DhtClient, NameSystemKeyMaterial};
use anyhow::{anyhow, Result};
use libp2p::{self, Multiaddr};
use libp2p::Multiaddr;
use noosphere_ucan::store::UcanJwtStore;
use std::net::Ipv4Addr;

Expand Down
1 change: 0 additions & 1 deletion rust/noosphere-ns/src/dht/errors.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use anyhow;
use libp2p::{kad, kad::store::Error as KadStorageError, TransportError};
use noosphere_common::channel::ChannelError;
use std::fmt;
Expand Down
1 change: 0 additions & 1 deletion rust/noosphere-ns/src/dht/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use crate::dht::{
use libp2p::{identity::Keypair, Multiaddr, PeerId};
use noosphere_common::channel::message_channel;
use std::time::Duration;
use tokio;

macro_rules! ensure_response {
($response:expr, $matcher:pat => $statement:expr) => {
Expand Down
1 change: 0 additions & 1 deletion rust/noosphere-ns/src/dht/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ use libp2p::{
};
use std::{collections::HashMap, time::Duration};
use std::{fmt, num::NonZeroUsize};
use tokio;

/// The processing component of a [DHTNode]/[DHTProcessor] pair. Consumers
/// should only interface with a [DHTProcessor] via [DHTNode].
Expand Down
2 changes: 1 addition & 1 deletion rust/noosphere-ns/src/dht/swarm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use libp2p::{
swarm::{NetworkBehaviour, SwarmEvent},
tls, yamux, PeerId, Swarm, SwarmBuilder,
};
use std::{result::Result, time::Duration};
use std::time::Duration;
use void::Void;

/// Protocols are responsible for determining how long
Expand Down
1 change: 0 additions & 1 deletion rust/noosphere-ns/src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::DhtClient;
use anyhow;
use libp2p::{
multiaddr::{Multiaddr, Protocol},
PeerId,
Expand Down
2 changes: 1 addition & 1 deletion rust/noosphere-ucan/src/ipld/signature.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::crypto::JwtSignatureAlgorithm;
use anyhow::{anyhow, Result};
use serde::{Deserialize, Serialize};
use std::{convert::TryFrom, str::FromStr};
use std::str::FromStr;

// See <https://github.com/ucan-wg/ts-ucan/blob/99c9fc4f89fc917cf08d7fb09685705876b960f4/packages/default-plugins/src/prefixes.ts#L1-L6>
// See <https://github.com/multiformats/unsigned-varint>
Expand Down
2 changes: 1 addition & 1 deletion rust/noosphere-ucan/src/ipld/ucan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::{
};
use cid::Cid;
use serde::{Deserialize, Serialize};
use std::{convert::TryFrom, str::FromStr};
use std::str::FromStr;

#[derive(Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct UcanIpld {
Expand Down
2 changes: 1 addition & 1 deletion rust/noosphere-ucan/src/ucan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use cid::{
use libipld_core::{codec::Codec, raw::RawCodec};
use serde::{Deserialize, Serialize};
use serde_json::Value;
use std::{collections::BTreeMap, convert::TryFrom, str::FromStr};
use std::{collections::BTreeMap, str::FromStr};

pub const UCAN_VERSION: &str = "0.10.0-canary";

Expand Down

0 comments on commit 55fe107

Please sign in to comment.