Skip to content

Commit 96d2958

Browse files
committed
Use String for now in Config intead of SshPublicKey directly to pass tests
1 parent 7600ad9 commit 96d2958

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/config.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::{GitProvider, SshPublicKey};
1+
use crate::GitProvider;
22
use figment::{
33
providers::{Format, Toml},
44
Figment,
@@ -11,7 +11,7 @@ use std::path::PathBuf;
1111
struct Config {
1212
users: Vec<User>,
1313
organizations: Vec<Organization>,
14-
local: Vec<SshPublicKey>,
14+
local: Vec<String>,
1515
sources: Vec<Source>,
1616
}
1717

src/core.rs

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ pub trait GetPublicKeys {
3333

3434
/// A Git provider.
3535
#[derive(Debug, Clone, Copy, Deserialize, Serialize, PartialEq, Eq, clap::ValueEnum)]
36+
#[serde(rename_all = "lowercase")]
3637
pub enum GitProvider {
3738
Github,
3839
Gitlab,

0 commit comments

Comments
 (0)