Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] minor issue when build #94

Closed
depool-live opened this issue Jun 27, 2021 · 2 comments
Closed

[Bug] minor issue when build #94

depool-live opened this issue Jun 27, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@depool-live
Copy link

🐛 Bug Report

rust/environment/src/environment.rs:17:5

|
17 | use aleo_account::Address;
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default

warning: unused imports: CRH, CommitmentScheme, SignatureScheme
--> rust/environment/src/environment.rs:20:14
|
20 | traits::{CommitmentScheme, CRH},
| ^^^^^^^^^^^^^^^^ ^^^
21 | SignatureScheme,
| ^^^^^^^^^^^^^^^

warning: unused import: std::hash::Hash
--> rust/environment/src/environment.rs:33:5
|
33 | use std::hash::Hash;
| ^^^^^^^^^^^^^^^

warning: 3 warnings emitted

Compiling aleo-record v0.2.0 (~/aleo/aleo/rust/record)
warning: glob import doesn't reexport anything because no candidate is public enough
--> rust/record/src/helpers/mod.rs:18:9
|
18 | pub use decode::*;
| ^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default

warning: glob import doesn't reexport anything because no candidate is public enough
--> rust/record/src/helpers/mod.rs:21:9
|
21 | pub use decrypt::*;
| ^^^^^^^^^^

warning: glob import doesn't reexport anything because no candidate is public enough
--> rust/record/src/helpers/mod.rs:24:9
|
24 | pub use encode::*;
| ^^^^^^^^^

warning: glob import doesn't reexport anything because no candidate is public enough
--> rust/record/src/helpers/mod.rs:27:9
|
27 | pub use encrypt::*;
| ^^^^^^^^^^

warning: variable does not need to be mutable
--> rust/record/src/record_builder.rs:141:9
|
141 | mut self,
| ----^^^^
| |
| help: remove this mut
|
= note: #[warn(unused_mut)] on by default

warning: field is never read: elements
--> rust/record/src/encoded.rs:23:5
|
23 | elements: Vec,
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)] on by default

warning: field is never read: final_sign_high
--> rust/record/src/encoded.rs:24:5
|
24 | final_sign_high: bool,
| ^^^^^^^^^^^^^^^^^^^^^

warning: struct is never constructed: Decode
--> rust/record/src/helpers/decode.rs:36:19
|
36 | pub(crate) struct Decode;
| ^^^^^^

warning: associated function is never used: decode
--> rust/record/src/helpers/decode.rs:39:19
|
39 | pub(crate) fn decode<E: Environment>(
| ^^^^^^

warning: 9 warnings emitted

Compiling aleo v0.2.0 (~/aleo/aleo)
Finished release [optimized] target(s) in 2m 11s
-->

(Write your description here)

Steps to Reproduce

Code snippet to reproduce

# Add code here

Stack trace & error message

// Paste the output here

Expected Behavior

(Write what you expected to happen here)

Your Environment

  • aleo v0.2.0
  • rustc 1.53.0
  • ubuntu 20
@depool-live depool-live added the bug Something isn't working label Jun 27, 2021
@howardwu
Copy link
Member

#90

@collinc97
Copy link
Contributor

these warnings are fixed on the main branch as of commit d17b0b3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants