build: Make borrowing compliant with older Rust
This commit is contained in:
@ -112,7 +112,7 @@ fn list_layout_sources(
|
|||||||
keyboards_path: Option<PathBuf>,
|
keyboards_path: Option<PathBuf>,
|
||||||
) -> Vec<DataSource> {
|
) -> Vec<DataSource> {
|
||||||
let mut ret = Vec::new();
|
let mut ret = Vec::new();
|
||||||
|
{
|
||||||
let mut add_by_name = |name: &str| {
|
let mut add_by_name = |name: &str| {
|
||||||
if let Some(path) = keyboards_path.clone() {
|
if let Some(path) = keyboards_path.clone() {
|
||||||
ret.push(DataSource::File(
|
ret.push(DataSource::File(
|
||||||
@ -136,7 +136,7 @@ fn list_layout_sources(
|
|||||||
};
|
};
|
||||||
|
|
||||||
add_by_name(FALLBACK_LAYOUT_NAME);
|
add_by_name(FALLBACK_LAYOUT_NAME);
|
||||||
|
}
|
||||||
ret
|
ret
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user