Ver Fonte

Fix compilation errors

parazyd há 4 anos atrás
pai
commit
22fdec7fed
3 ficheiros alterados com 3 adições e 3 exclusões
  1. 1 1
      bin/darkfid/src/main.rs
  2. 1 1
      bin/map/src/main.rs
  3. 1 1
      src/tx/builder.rs

+ 1 - 1
bin/darkfid/src/main.rs

@@ -253,7 +253,7 @@ impl Darkfid {
             let bytes_vec: Vec<u8> = serde_json::from_str(&keypair_str)?;
             bytes.copy_from_slice(bytes_vec.as_slice());
 
-            let secret: SecretKey = SecretKey::from_bytes(&bytes)?;
+            let secret: SecretKey = SecretKey::from_bytes(bytes)?;
             let public: PublicKey = PublicKey::from_secret(secret);
 
             self.client.lock().await.put_keypair(&Keypair { secret, public }).await?;

+ 1 - 1
bin/map/src/main.rs

@@ -255,7 +255,7 @@ async fn render<B: Backend>(terminal: &mut Terminal<B>, model: Arc<Model>) -> io
             match k.unwrap() {
                 Key::Char('q') => {
                     terminal.clear()?;
-                    return Ok(());
+                    return Ok(())
                 }
                 Key::Char('j') => {
                     view.id_list.next();

+ 1 - 1
src/tx/builder.rs

@@ -1,4 +1,4 @@
-use pasta_curves::arithmetic::Field;
+use pasta_curves::group::ff::Field;
 use rand::rngs::OsRng;
 
 use super::{