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

Commit

Permalink
Clean up build / runtime warnings (#95)
Browse files Browse the repository at this point in the history
* Remove unused imports

* Change todo! to // TODO: so Ok(()) is reachable.

* keep todo!() instead
  • Loading branch information
igbanam authored Oct 19, 2022
1 parent 1a96c74 commit d8b6774
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion rust/noosphere-api/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use ucan::{
capability::{Capability, Resource, With},
chain::ProofChain,
crypto::{did::DidParser, KeyMaterial},
serde::Base64Encode,
store::UcanStore,
Ucan,
};
Expand Down
2 changes: 1 addition & 1 deletion rust/noosphere-cli/src/native/commands/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use tokio::sync::OnceCell;
use url::Url;

use crate::native::{
workspace::{self, Workspace},
workspace::Workspace,
ConfigGetCommand, ConfigSetCommand,
};

Expand Down
1 change: 0 additions & 1 deletion rust/noosphere-cli/src/native/commands/serve/extractor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use axum::{
extract::{FromRequest, RequestParts},
http::{header, StatusCode},
response::IntoResponse,
response::Response,
BoxError,
};
use libipld_cbor::DagCborCodec;
Expand Down
2 changes: 0 additions & 2 deletions rust/noosphere-cli/src/native/commands/sphere.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ Type or paste the code here and press enter:"#,
};

todo!();

Ok(())
}

pub async fn authorize(_key_did: &str, working_paths: &Workspace) -> Result<()> {
Expand Down
2 changes: 1 addition & 1 deletion rust/noosphere-fs/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use noosphere_storage::{
interface::{BlockStore, Store},
};
use once_cell::sync::OnceCell;
use std::{str::FromStr, sync::Once};
use std::{str::FromStr};
use tokio_util::io::StreamReader;
use ucan::{crypto::KeyMaterial, ucan::Ucan};

Expand Down
2 changes: 1 addition & 1 deletion rust/noosphere-storage/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use libipld_core::{
raw::RawCodec,
};
use std::{collections::BTreeSet, fmt::Debug};
use tokio_stream::{Stream, StreamExt};
use tokio_stream::{Stream};
use ucan::store::{UcanStore, UcanStoreConditionalSend};

use crate::interface::{BlockStore, KeyValueStore, StorageProvider, Store};
Expand Down
2 changes: 1 addition & 1 deletion rust/noosphere/src/data/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use cid::Cid;

use futures::{pin_mut, StreamExt};
use libipld_cbor::DagCborCodec;
use libipld_core::{ipld::Ipld, raw::RawCodec, serde::to_ipld};
use libipld_core::{raw::RawCodec, serde::to_ipld};
use noosphere_cbor::{TryDagCbor, TryDagCborSendSync};
use noosphere_storage::{
encoding::{block_deserialize, block_serialize},
Expand Down
2 changes: 1 addition & 1 deletion rust/noosphere/src/view/sphere.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use anyhow::{anyhow, Result};
use cid::Cid;
use libipld_cbor::DagCborCodec;
use libipld_core::{codec::Codec, ipld::Ipld, raw::RawCodec};
use libipld_core::{ipld::Ipld, raw::RawCodec};
use ucan::{
builder::UcanBuilder,
capability::{Capability, Resource, With},
Expand Down

0 comments on commit d8b6774

Please sign in to comment.