Commit 596adc9b authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui
Browse files

resources: remove unneeded new_

parent b07d0fbb
Pipeline #195824 passed with stage
in 26 minutes and 20 seconds
......@@ -10,7 +10,7 @@ pub(crate) fn init() -> Result<(), Error> {
// Create Resource it will live as long the value lives.
let gbytes = Bytes::from_static(res_bytes.as_ref());
let resource = Resource::new_from_data(&gbytes)?;
let resource = Resource::from_data(&gbytes)?;
// Register the resource so it won't be dropped and will continue to live in
// memory.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment