mirror of
https://github.com/AleoHQ/leo.git
synced 2025-01-04 16:15:11 +03:00
Prefer str over String in get_circuit
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
This commit is contained in:
parent
c05fe32d77
commit
2288510fec
@ -175,7 +175,7 @@ impl Frame {
|
||||
///
|
||||
/// Get a circuit's type from the user defined types in the current scope.
|
||||
///
|
||||
fn get_circuit(&self, name: &String) -> Option<&CircuitType> {
|
||||
fn get_circuit(&self, name: &str) -> Option<&CircuitType> {
|
||||
self.user_defined_types.get_circuit_type(name)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user