Hello. I wanted to play a little with the cardano rust cli on a macOS mojave 10.14.3 system
but had the following warnings after (or during?) Compiling cardano-cli v1.0.1 (/Users/art/Documents/cardano-cli)
using :
warning: use of deprecated item 'cardano_storage::iter::Iter'
--> src/blockchain/mod.rs:256:26
|
256 | ) -> storage::Result<storage::iter::Iter<'a>> {
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(deprecated)] on by default
warning: use of deprecated item 'cardano_storage::iter::Iter'
--> src/blockchain/mod.rs:257:9
|
257 | storage::iter::Iter::new(&self.storage, from, to)
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'cardano_storage::iter::Iter'
--> src/blockchain/mod.rs:263:26
|
263 | ) -> storage::Result<storage::iter::Iter<'a>> {
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'cardano_storage::iter::Iter'
--> src/blockchain/commands.rs:569:16
|
569 | for res in storage::iter::Iter::new(&blockchain.storage, from, to)? {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'cardano_storage::iter::Iter'
--> src/wallet/state/iter.rs:8:21
|
8 | block_iterator: storage::iter::Iter<'a>,
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'cardano_storage::iter::Iter'
--> src/wallet/state/iter.rs:49:55
|
49 | pub fn new(progress: ProgressBar, block_iterator: storage::iter::Iter<'a>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'std::error::Error::cause': replaced by Error::source, which can support downcasting
--> src/utils/term/mod.rs:174:37
|
174 | while let Some(err) = error.cause() {
| ^^^^^
warning: use of deprecated item 'cardano::block::Block::get_header': use header() instead
--> src/blockchain/mod.rs:234:36
|
234 | let header = block.get_header();
| ^^^^^^^^^^
warning: use of deprecated item 'cardano_storage::iter::Iter::new'
--> src/blockchain/mod.rs:257:9
|
257 | storage::iter::Iter::new(&self.storage, from, to)
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'cardano_storage::iter::ReverseIter::from': use Storage::reverse_from
--> src/blockchain/commands.rs:253:18
|
253 | for block in storage::iter::ReverseIter::from(&blockchain.storage, from)? {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'cardano::block::Block::get_header': use header() instead
--> src/blockchain/commands.rs:467:24
|
467 | let hash = blk.get_header().compute_hash();
| ^^^^^^^^^^
warning: use of deprecated item 'cardano::block::Block::get_header': use header() instead
--> src/blockchain/commands.rs:470:24
|
470 | if blk.get_header().get_blockdate().is_boundary() {
| ^^^^^^^^^^
warning: use of deprecated item 'cardano::block::Block::get_header': use header() instead
--> src/blockchain/commands.rs:484:25
|
484 | blk.get_header().get_blockdate()
| ^^^^^^^^^^
warning: use of deprecated item 'cardano_storage::iter::Iter::new'
--> src/blockchain/commands.rs:569:16
|
569 | for res in storage::iter::Iter::new(&blockchain.storage, from, to)? {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'cardano::block::Block::get_header': use header() instead
--> src/blockchain/commands.rs:571:26
|
571 | let hash = block.get_header().compute_hash();
| ^^^^^^^^^^
warning: use of deprecated item 'cardano::block::Block::get_header': use header() instead
--> src/blockchain/peer.rs:175:33
|
175 | let hdr = block.get_header();
| ^^^^^^^^^^
warning: use of deprecated item 'cardano::block::Block::get_header': use header() instead
--> src/blockchain/peer.rs:198:38
|
198 | let date = block.get_header().get_blockdate();
| ^^^^^^^^^^
warning: use of deprecated item 'cardano::block::Block::get_header': use header() instead
--> src/blockchain/peer.rs:356:36
|
356 | let header = block.get_header();
| ^^^^^^^^^^
warning: use of deprecated item 'cardano::block::Block::get_header': use header() instead
--> src/blockchain/peer.rs:425:29
|
425 | let hdr = block.get_header();
| ^^^^^^^^^^
warning: use of deprecated item 'cardano::block::Block::get_header': use header() instead
--> src/wallet/state/iter.rs:16:29
|
16 | let hdr = block.get_header();
| ^^^^^^^^^^
warning: use of deprecated item 'std::error::Error::cause': replaced by Error::source, which can support downcasting
--> src/wallet/state/lookup/error.rs:28:57
|
28 | AddressLookupError::RandomIndex(err) => err.cause(),
| ^^^^^
warning: use of deprecated item 'std::error::Error::cause': replaced by Error::source, which can support downcasting
--> src/wallet/state/lookup/error.rs:29:61
|
29 | AddressLookupError::SequentialBip44(err) => err.cause(),
| ^^^^^
warning: use of deprecated item 'cardano::tx::TxInWitness::new': use new_extended_pk method instead
--> src/wallet/utils.rs:387:17
|
387 | TxInWitness::new(protocol_magic, &*xprv, txid)
| ^^^^^^^^^^^^^^^^
warning: use of deprecated item 'cardano::tx::TxInWitness::new': use new_extended_pk method instead
--> src/wallet/utils.rs:396:17
|
396 | TxInWitness::new(protocol_magic, &xprv, txid)
| ^^^^^^^^^^^^^^^^
warning: unused variable: `term`
--> src/utils/prompt/mnemonics.rs:6:30
|
6 | fn interactive_input_word<D>(term: &mut Term, dic: &D, idx: usize, count: usize) -> String
| ^^^^ help: consider using `_term` instead
|
= note: #[warn(unused_variables)] on by default
warning: unused variable: `term`
--> src/utils/prompt/mnemonics.rs:129:33
|
129 | pub fn input_mnemonic_phrase<D>(term: &mut Term, dic: &D, size: bip39::Type) -> PromptedMnemonics
| ^^^^ help: consider using `_term` instead
warning: unused variable: `changes`
--> src/transaction/commands.rs:76:21
|
76 | let (finalized, changes) = staging
| ^^^^^^^ help: consider using `_changes` instead
warning: unused variable: `finalized`
--> src/transaction/commands.rs:121:10
|
121 | let (finalized, changes) = staging
| ^^^^^^^^^ help: consider using `_finalized` instead
warning: unused variable: `changes`
--> src/transaction/commands.rs:121:21
|
121 | let (finalized, changes) = staging
| ^^^^^^^ help: consider using `_changes` instead
warning: unused variable: `changes`
--> src/transaction/commands.rs:181:19
|
181 | let (builder, changes) = staging
| ^^^^^^^ help: consider using `_changes` instead
warning: unused variable: `term`
--> src/transaction/commands.rs:234:5
|
234 | term: &mut Term,
| ^^^^ help: consider using `_term` instead
warning: unused variable: `term`
--> src/transaction/commands.rs:395:5
|
395 | term: &mut Term,
| ^^^^ help: consider using `_term` instead
warning: static item is never used: `PACKAGE`
--> src/utils/term/emoji.rs:5:1
|
5 | pub static PACKAGE: Emoji = Emoji("📦", " ");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)] on by default
warning: static item is never used: `WARN`
--> src/utils/term/emoji.rs:6:1
|
6 | pub static WARN: Emoji = Emoji("⚠️", " ");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant item is never used: `DEFAULT_TERM_WIDTH`
--> src/utils/term/mod.rs:20:1
|
20 | pub const DEFAULT_TERM_WIDTH: usize = 80;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant item is never used: `DEFAULT_TERM_HEIGHT`
--> src/utils/term/mod.rs:21:1
|
21 | pub const DEFAULT_TERM_HEIGHT: usize = 24;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method is never used: `prompt`
--> src/utils/term/mod.rs:84:5
|
84 | pub fn prompt(&mut self, prompt: &str) -> io::Result<String> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: variant is never constructed: `ForwardHashDoesNotExist`
--> src/blockchain/error.rs:19:5
|
19 | ForwardHashDoesNotExist(HeaderHash),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: variant is never constructed: `GetBlockDoesNotExist`
--> src/blockchain/error.rs:21:5
|
21 | GetBlockDoesNotExist(HeaderHash),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: variant is never constructed: `GetInvalidBlock`
--> src/blockchain/error.rs:22:5
|
22 | GetInvalidBlock(HeaderHash),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method is never used: `load_peer_local_tip`
--> src/blockchain/peer.rs:325:5
|
325 | pub fn load_peer_local_tip(&self) -> HeaderHash {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method is never used: `operations`
--> src/transaction/core/staging_transaction.rs:126:5
|
126 | pub fn operations(&self) -> &[Operation] {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method is never used: `is_finalized`
--> src/transaction/core/staging_transaction.rs:136:5
|
136 | pub fn is_finalized(&self) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: variant is never constructed: `DoubleSpend`
--> src/transaction/core/transaction.rs:32:5
|
32 | DoubleSpend,
| ^^^^^^^^^^^
warning: method is never used: `signature`
--> src/transaction/core/transaction.rs:205:5
|
205 | pub fn signature<'a>(&'a self) -> &'a [TxInWitness] {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method is never used: `lookup_input`
--> src/transaction/core/transaction.rs:218:5
|
218 | pub fn lookup_input(&self, txin: TxoPointer) -> Option<usize> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: variant is never constructed: `CannotReportStatusInvalidTx`
--> src/transaction/error.rs:27:5
|
27 | CannotReportStatusInvalidTx(cardano::txbuild::Error),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method is never used: `map`
--> src/wallet/state/log.rs:194:5
|
194 | / pub fn map<F, U>(self, f: F) -> Log<U>
195 | | where
196 | | F: FnOnce(A) -> U,
197 | | {
... |
202 | | }
203 | | }
| |_____^
warning: field is never used: `log_path`
--> src/wallet/state/log.rs:241:5
|
241 | log_path: PathBuf,
| ^^^^^^^^^^^^^^^^^
warning: method is never used: `release_lock`
--> src/wallet/state/log.rs:253:5
|
253 | pub fn release_lock(self) -> LogLock {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method is never used: `new`
--> src/wallet/state/lookup/randomindex.rs:20:5
|
20 | / pub fn new(
21 | | generator: rindex::AddressGenerator<hdwallet::XPrv>,
22 | | network_magic: NetworkMagic,
23 | | ) -> Self {
... |
27 | | }
28 | | }
| |_____^
warning: unused `std::result::Result` that must be used
--> src/utils/term/mod.rs:173:9
|
173 | writeln!(&mut self.term, "{}", self.style.error.apply_to(formated));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_must_use)] on by default
= note: this `Result` may be an `Err` variant, which should be handled
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
warning: unused `std::result::Result` that must be used
--> src/utils/term/mod.rs:177:13
|
177 | / writeln!(
178 | | &mut self.term,
179 | | " |-> {}",
180 | | self.style.warning.apply_to(formated)
181 | | );
| |______________^
|
= note: this `Result` may be an `Err` variant, which should be handled
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
warning: unused `std::result::Result` that must be used
--> src/blockchain/commands.rs:572:9
|
572 | writeln!(term, "{}", style!(hash));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this `Result` may be an `Err` variant, which should be handled
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
warning: unused `std::result::Result` that must be used
--> src/wallet/commands.rs:452:5
|
452 | writeln!(term, "{}", style!(addr));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this `Result` may be an `Err` variant, which should be handled
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)