mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-25 00:00:05 +03:00
Highlight change in traits4 solution
This commit is contained in:
parent
45cfe86fb0
commit
c170740423
|
@ -11,6 +11,7 @@ impl Licensed for SomeSoftware {}
|
||||||
impl Licensed for OtherSoftware {}
|
impl Licensed for OtherSoftware {}
|
||||||
|
|
||||||
fn compare_license_types(software1: impl Licensed, software2: impl Licensed) -> bool {
|
fn compare_license_types(software1: impl Licensed, software2: impl Licensed) -> bool {
|
||||||
|
// ^^^^^^^^^^^^^ ^^^^^^^^^^^^^
|
||||||
software1.licensing_info() == software2.licensing_info()
|
software1.licensing_info() == software2.licensing_info()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue