Skip to content

Commit 7d6c846

Browse files
committed
Re-link
1 parent c1d3ea1 commit 7d6c846

File tree

15 files changed

+34
-17
lines changed

15 files changed

+34
-17
lines changed

crates/bevy_text/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ keywords = ["bevy"]
1010

1111
[features]
1212
default_font = []
13+
serde = []
1314

1415
[dependencies]
1516
# bevy

crates/bevy_text/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ mod pipeline;
4242
mod text;
4343
mod text2d;
4444
mod text_access;
45+
mod undo_2;
4546

4647
use bevy_camera::{visibility::VisibilitySystems, CameraUpdateSystems};
4748
pub use bounds::*;
File renamed without changes.

crates/bevy_text/src/undo_2/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![doc = include_str!("../../README-undo.md")]
1+
#![doc = include_str!("./README.md")]
22
#![doc = document_features::document_features!()]
33
use core::borrow::Borrow;
44
use core::cmp::min;
@@ -403,7 +403,7 @@ pub struct Splice<'a, T, I: IntoIterator<Item = T>> {
403403
/// [Commands::redo](Commands#method.redo)
404404
pub struct ActionIter<'a, T> {
405405
commands: &'a [CommandItem<T>],
406-
to_do: std::slice::Iter<'a, IndexedAction>,
406+
to_do: slice::Iter<'a, IndexedAction>,
407407
}
408408
impl<T> Clone for ActionIter<'_, T> {
409409
fn clone(&self) -> Self {
@@ -1875,7 +1875,7 @@ impl<'a, T> IntoIterator for &'a Commands<T> {
18751875
}
18761876
impl<T> IntoIterator for Commands<T> {
18771877
type Item = CommandItem<T>;
1878-
type IntoIter = std::vec::IntoIter<CommandItem<T>>;
1878+
type IntoIter = vec::IntoIter<CommandItem<T>>;
18791879
fn into_iter(self) -> Self::IntoIter {
18801880
self.commands.into_iter()
18811881
}

crates/bevy_text/src/undo_2/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
mod lib;
3+
mod tests;
4+
5+
pub use lib::*;

crates/bevy_text/src/undo_2/tests/iter_realized.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![allow(unused)]
22

3-
use undo_2::*;
3+
use crate::undo_2::*;
44

55
#[derive(PartialEq, Debug)]
66
enum Command {

crates/bevy_text/src/undo_2/tests/merge.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
use undo_2::*;
1+
use crate::undo_2::*;
22

33
#[test]
44
fn merge() {
55
use std::ops::ControlFlow;
6-
use undo_2::CommandItem;
7-
use undo_2::IterRealized;
8-
use undo_2::Merge;
6+
use crate::undo_2::CommandItem;
7+
use crate::undo_2::IterRealized;
8+
use crate::undo_2::Merge;
99
#[derive(Eq, PartialEq, Debug)]
1010
enum Command {
1111
A,
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
mod iter_realized;
3+
mod merge;
4+
mod redo;
5+
mod remove_undone;
6+
mod set_and_transition;
7+
mod splice;
8+
mod tests;
9+
mod unbuild;
10+
mod undo;

crates/bevy_text/src/undo_2/tests/redo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![allow(unused)]
2-
use undo_2::{Action, Commands};
2+
use crate::undo_2::{Action, Commands};
33

44
#[derive(Debug, Eq, PartialEq)]
55
enum Command {

crates/bevy_text/src/undo_2/tests/remove_undone.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![allow(unused)]
2-
use undo_2::*;
2+
use crate::undo_2::*;
33

44
#[test]
55
fn remove_undone() {

0 commit comments

Comments
 (0)