Prefer str over String in get_circuit

Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
This commit is contained in:
Collin Chin 2020-10-27 11:12:23 -07:00 committed by GitHub
parent c05fe32d77
commit 2288510fec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}