Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Implementing the builder pattern for RequestInit
  • Loading branch information
d3vsanchez committed Apr 3, 2019
1 parent 6fa1853 commit 1bb9073
Show file tree
Hide file tree
Showing 17 changed files with 499 additions and 437 deletions.
8 changes: 1 addition & 7 deletions components/gfx/font_cache_thread.rs
Expand Up @@ -238,13 +238,7 @@ impl FontCache {
None => return,
};

let request = RequestInit {
url: url.clone(),
destination: Destination::Font,
// TODO: Add a proper origin - Can't import GlobalScope from gfx
// We can leave origin to be set by default
..RequestInit::default()
};
let request = RequestInit::new(url.clone()).destination(Destination::Font);

let channel_to_self = self.channel_to_self.clone();
let bytes = Mutex::new(Vec::new());
Expand Down

0 comments on commit 1bb9073

Please sign in to comment.