mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-30 04:37:29 -06:00
Merge pull request #1132 from dotCooCoo/feat/web-clippy-dead-code
Lint: clippy -D warnings passes for the wasm32 web build
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
@@ -66,6 +66,7 @@ fn ask_update(app: &mut VectorcraftApp, ids: Vec<Value>) {
|
||||
|
||||
/// The same offer for linked files another app changed while the document is open
|
||||
/// ([`vectorcraft_engine::link_watch`]).
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
pub(crate) fn ask_update_changed(app: &mut VectorcraftApp, ids: Vec<Value>) {
|
||||
ask(app, ids, tl!("{count} linked image(s) changed on disk. Show the new versions?"));
|
||||
}
|
||||
|
||||
@@ -266,6 +266,7 @@ pub fn lang_from_tag(tag: &str) -> Option<Lang> {
|
||||
|
||||
/// True when `tag` names the generic `C` / `POSIX` locale (or a variant like `C.UTF-8`), which on
|
||||
/// macOS means "no particular language" rather than English: the system language list decides.
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
fn is_c_locale(tag: &str) -> bool {
|
||||
let base = tag.split(['.', '@']).next().unwrap_or("").to_ascii_lowercase();
|
||||
matches!(base.as_str(), "c" | "posix")
|
||||
|
||||
Reference in New Issue
Block a user