1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 06:10:06 -04:00

egui_web: Add simple fetch API and demostrate it in example_web

This commit is contained in:
Emil Ernerfeldt
2020-11-18 00:43:58 +01:00
parent 0cb3bb791b
commit fad0029119
8 changed files with 1046 additions and 26 deletions

View File

@@ -61,7 +61,7 @@ pub fn warn_if_debug_build(ui: &mut crate::Ui) {
macro_rules! github_link_file_line {
($github_url:expr, $label:expr) => {{
let url = format!("{}{}#L{}", $github_url, file!(), line!());
Hyperlink::new(url).text($label)
$crate::Hyperlink::new(url).text($label)
}};
}
@@ -71,7 +71,7 @@ macro_rules! github_link_file_line {
macro_rules! github_link_file {
($github_url:expr, $label:expr) => {{
let url = format!("{}{}", $github_url, file!());
Hyperlink::new(url).text($label)
$crate::Hyperlink::new(url).text($label)
}};
}