pass cargo check
This commit is contained in:
1 parent
2b383bc4f4
commit
71707fec09
4 files changed
+4
-8
No files matched your search
@@ -14,8 +14,6 @@ use std::{
|
|||||||
};
|
};
|
||||||
use stretch2::{prelude::Layout, Stretch};
|
use stretch2::{prelude::Layout, Stretch};
|
||||||
|
|
||||||
use crate::layout::StretchLayout;
|
|
||||||
use crate::style_attributes::StyleModifier;
|
|
||||||
use crate::{Dom, Node};
|
use crate::{Dom, Node};
|
||||||
|
|
||||||
// a wrapper around the input state for easier access
|
// a wrapper around the input state for easier access
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ mod widget;
|
|||||||
|
|
||||||
pub use config::*;
|
pub use config::*;
|
||||||
pub use hooks::*;
|
pub use hooks::*;
|
||||||
pub use render::*;
|
|
||||||
|
|
||||||
type Dom = RealDom<NodeState>;
|
type Dom = RealDom<NodeState>;
|
||||||
type Node = dioxus_native_core::real_dom::Node<NodeState>;
|
type Node = dioxus_native_core::real_dom::Node<NodeState>;
|
||||||
@@ -111,7 +110,7 @@ fn render_vdom(
|
|||||||
handler: RinkInputHandler,
|
handler: RinkInputHandler,
|
||||||
cfg: Config,
|
cfg: Config,
|
||||||
mut rdom: Dom,
|
mut rdom: Dom,
|
||||||
mut stretch: Rc<RefCell<Stretch>>,
|
stretch: Rc<RefCell<Stretch>>,
|
||||||
mut register_event: impl FnMut(crossterm::event::Event),
|
mut register_event: impl FnMut(crossterm::event::Event),
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
tokio::runtime::Builder::new_current_thread()
|
tokio::runtime::Builder::new_current_thread()
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
use crate::layout::StretchLayout;
|
|
||||||
use dioxus_native_core::layout_attributes::UnitSystem;
|
use dioxus_native_core::layout_attributes::UnitSystem;
|
||||||
use std::io::Stdout;
|
use std::io::Stdout;
|
||||||
use stretch2::{
|
use stretch2::{
|
||||||
@@ -12,7 +11,7 @@ use crate::{
|
|||||||
style::{RinkColor, RinkStyle},
|
style::{RinkColor, RinkStyle},
|
||||||
style_attributes::{BorderEdge, BorderStyle},
|
style_attributes::{BorderEdge, BorderStyle},
|
||||||
widget::{RinkBuffer, RinkCell, RinkWidget, WidgetWithContext},
|
widget::{RinkBuffer, RinkCell, RinkWidget, WidgetWithContext},
|
||||||
Config, Dom, Node, StyleModifier,
|
Config, Dom, Node,
|
||||||
};
|
};
|
||||||
|
|
||||||
const RADIUS_MULTIPLIER: [f32; 2] = [1.0, 0.5];
|
const RADIUS_MULTIPLIER: [f32; 2] = [1.0, 0.5];
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
- [ ] pub aspect_ratio: Number,
|
- [ ] pub aspect_ratio: Number,
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use dioxus_core::{Attribute, VNode};
|
use dioxus_core::Attribute;
|
||||||
use dioxus_native_core::{
|
use dioxus_native_core::{
|
||||||
layout_attributes::{parse_value, UnitSystem},
|
layout_attributes::{parse_value, UnitSystem},
|
||||||
state::{AttributeMask, NodeMask, NodeView, ParentDepState},
|
state::{AttributeMask, NodeMask, NodeView, ParentDepState},
|
||||||
@@ -49,7 +49,7 @@ impl ParentDepState for StyleModifier {
|
|||||||
// todo: seperate each attribute into it's own class
|
// todo: seperate each attribute into it's own class
|
||||||
const NODE_MASK: NodeMask = NodeMask::new(AttributeMask::All, true, true, false);
|
const NODE_MASK: NodeMask = NodeMask::new(AttributeMask::All, true, true, false);
|
||||||
|
|
||||||
fn reduce(&mut self, node: NodeView, parent: Option<&Self::DepState>, ctx: &Self::Ctx) -> bool {
|
fn reduce(&mut self, node: NodeView, parent: Option<&Self::DepState>, _: &Self::Ctx) -> bool {
|
||||||
*self = StyleModifier::default();
|
*self = StyleModifier::default();
|
||||||
if parent.is_some() {
|
if parent.is_some() {
|
||||||
self.style.fg = None;
|
self.style.fg = None;
|
||||||
|
|||||||
Reference in new issue
Block a user