Boscop / Boscop/web-view

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Initialization',

Open
#261 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2k
Forks
179
PR merge metrics
No merged PRs in 30d

Description

Hi All,
while running cargo run, I am getting this error in src/main.rs for Result::unwrap()
Can someone suggest what to do in this case.

I am running the Linux VM for implementing rust with web_view.
Have cloned this project in my_project directory, build is succeeded but running is causing issue

my main.rs file is:

extern crate web_view;
use web_view::*;

fn main() {
let html_content = "

Hello, World!

";

web_view::builder()
.title("My Project")
.content(Content::Html(html_content))
.size(320, 480)
.resizable(false)
.debug(true)
.user_data(())
.invoke_handler(|_webview, _arg| Ok(()))
.run()
.unwrap();
}

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.