mirror of
https://github.com/pcvolkmer/cert-tools.git
synced 2025-07-01 22:12:55 +00:00
refactor: create fixed chain using reference to certs
This commit is contained in:
@ -104,7 +104,7 @@ impl Ui {
|
||||
_ => None,
|
||||
};
|
||||
self.fixed_chain = match &self.chain {
|
||||
Some(chain) => match Chain::fixed_from(chain.certs().to_vec()) {
|
||||
Some(chain) => match Chain::create_fixed(chain.certs()) {
|
||||
Ok(chain) => Some(chain),
|
||||
_ => None,
|
||||
},
|
||||
@ -130,7 +130,7 @@ impl Ui {
|
||||
_ => None,
|
||||
};
|
||||
self.fixed_chain = match &self.chain {
|
||||
Some(chain) => match Chain::fixed_from(chain.certs().to_vec()) {
|
||||
Some(chain) => match Chain::create_fixed(chain.certs()) {
|
||||
Ok(chain) => Some(chain),
|
||||
_ => None,
|
||||
},
|
||||
@ -156,7 +156,7 @@ impl Ui {
|
||||
_ => None,
|
||||
};
|
||||
self.fixed_chain = match &self.chain {
|
||||
Some(chain) => match Chain::fixed_from(chain.certs().to_vec()) {
|
||||
Some(chain) => match Chain::create_fixed(chain.certs()) {
|
||||
Ok(chain) => Some(chain),
|
||||
_ => None,
|
||||
},
|
||||
|
Reference in New Issue
Block a user