fix: fixed warn info

This commit is contained in:
mrxiaozhuox committed 2022-01-22 22:19:59 +08:00
1 parent 5e710f6693
commit d18a93f129
11 files changed
+43 -44

No files matched your search

+1 -3
View File
@@ -1,6 +1,4 @@
use crate::cfg::ConfigOptsBuild;
use anyhow::Result;
use std::path::PathBuf;
use structopt::StructOpt;
/// Build the Rust WASM app and all of its assets.
@@ -18,7 +16,7 @@ impl Build {
// change the relase state.
crate_config.with_release(self.build.release);
crate::builder::build(&crate_config);
crate::builder::build(&crate_config)?;
Ok(())
}
+1 -4
View File
@@ -1,11 +1,8 @@
use anyhow::Result;
use std::path::PathBuf;
use structopt::StructOpt;
use serde::{Deserialize, Serialize};
use serde::Deserialize;
use std::collections::HashMap;
use std::str::FromStr;
use std::sync::Arc;
/// Config options for the build system.
#[derive(Clone, Debug, Default, Deserialize, StructOpt)]
-3
View File
@@ -1,6 +1,3 @@
use crate::cfg::ConfigOptsBuild;
use anyhow::Result;
use std::path::PathBuf;
use structopt::StructOpt;
/// Build the Rust WASM app and all of its assets.
-2
View File
@@ -1,5 +1,3 @@
use anyhow::{Context, Result};
use std::path::PathBuf;
use structopt::StructOpt;
pub mod build;
-2
View File
@@ -1,6 +1,4 @@
use crate::{cfg::ConfigOptsServe, server};
use anyhow::Result;
use std::path::PathBuf;
use std::io::Write;
use structopt::StructOpt;
+1
View File
@@ -20,6 +20,7 @@ pub fn convert_html_to_component(html: &str) -> Result<ComponentRenderer> {
})
}
#[allow(dead_code)]
pub struct ComponentRenderer {
dom: Dom,
icon_index: usize,