Merge branch 'master' into text-editor
This commit is contained in:
commit
6582387579
109 changed files with 370 additions and 413 deletions
|
|
@ -157,7 +157,7 @@ where
|
|||
)
|
||||
.with_visible(false);
|
||||
|
||||
log::debug!("Window builder: {:#?}", builder);
|
||||
log::debug!("Window builder: {builder:#?}");
|
||||
|
||||
let window = builder
|
||||
.build(&event_loop)
|
||||
|
|
@ -174,7 +174,7 @@ where
|
|||
let body = document.body().unwrap();
|
||||
|
||||
let target = target.and_then(|target| {
|
||||
body.query_selector(&format!("#{}", target))
|
||||
body.query_selector(&format!("#{target}"))
|
||||
.ok()
|
||||
.unwrap_or(None)
|
||||
});
|
||||
|
|
@ -769,7 +769,7 @@ pub fn run_command<A, C, E>(
|
|||
size.width,
|
||||
size.height,
|
||||
)))
|
||||
.expect("Send message to event loop")
|
||||
.expect("Send message to event loop");
|
||||
}
|
||||
window::Action::Maximize(maximized) => {
|
||||
window.set_maximized(maximized);
|
||||
|
|
@ -791,7 +791,7 @@ pub fn run_command<A, C, E>(
|
|||
));
|
||||
}
|
||||
window::Action::ChangeIcon(icon) => {
|
||||
window.set_window_icon(conversion::icon(icon))
|
||||
window.set_window_icon(conversion::icon(icon));
|
||||
}
|
||||
window::Action::FetchMode(tag) => {
|
||||
let mode = if window.is_visible().unwrap_or(true) {
|
||||
|
|
@ -805,7 +805,7 @@ pub fn run_command<A, C, E>(
|
|||
.expect("Send message to event loop");
|
||||
}
|
||||
window::Action::ToggleMaximize => {
|
||||
window.set_maximized(!window.is_maximized())
|
||||
window.set_maximized(!window.is_maximized());
|
||||
}
|
||||
window::Action::ToggleDecorations => {
|
||||
window.set_decorations(!window.is_decorated());
|
||||
|
|
@ -840,7 +840,7 @@ pub fn run_command<A, C, E>(
|
|||
bytes,
|
||||
state.physical_size(),
|
||||
)))
|
||||
.expect("Send message to event loop.")
|
||||
.expect("Send message to event loop.");
|
||||
}
|
||||
},
|
||||
command::Action::System(action) => match action {
|
||||
|
|
@ -858,7 +858,7 @@ pub fn run_command<A, C, E>(
|
|||
|
||||
proxy
|
||||
.send_event(message)
|
||||
.expect("Send message to event loop")
|
||||
.expect("Send message to event loop");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ impl Clipboard {
|
|||
State::Connected(clipboard) => match clipboard.write(contents) {
|
||||
Ok(()) => {}
|
||||
Err(error) => {
|
||||
log::warn!("error writing to clipboard: {}", error)
|
||||
log::warn!("error writing to clipboard: {error}");
|
||||
}
|
||||
},
|
||||
State::Unavailable => {}
|
||||
|
|
@ -59,6 +59,6 @@ impl crate::core::Clipboard for Clipboard {
|
|||
}
|
||||
|
||||
fn write(&mut self, contents: String) {
|
||||
self.write(contents)
|
||||
self.write(contents);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,15 +22,9 @@
|
|||
missing_debug_implementations,
|
||||
missing_docs,
|
||||
unused_results,
|
||||
clippy::extra_unused_lifetimes,
|
||||
clippy::from_over_into,
|
||||
clippy::needless_borrow,
|
||||
clippy::new_without_default,
|
||||
clippy::useless_conversion,
|
||||
unsafe_code,
|
||||
rustdoc::broken_intra_doc_links
|
||||
)]
|
||||
#![allow(clippy::inherent_to_string, clippy::type_complexity)]
|
||||
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
||||
pub use iced_graphics as graphics;
|
||||
pub use iced_runtime as runtime;
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ impl Default for Window {
|
|||
transparent: false,
|
||||
level: Level::default(),
|
||||
icon: None,
|
||||
platform_specific: Default::default(),
|
||||
platform_specific: PlatformSpecific::default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ pub(crate) fn information(
|
|||
|
||||
let memory_used = sysinfo::get_current_pid()
|
||||
.and_then(|pid| system.process(pid).ok_or("Process not found"))
|
||||
.map(|process| process.memory())
|
||||
.map(ProcessExt::memory)
|
||||
.ok();
|
||||
|
||||
Information {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue