mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
rename index
This commit is contained in:
parent
9b214b1469
commit
0618283d84
4 changed files with 9 additions and 11 deletions
|
|
@ -1,9 +1,9 @@
|
|||
mod closed;
|
||||
use closed::Closed;
|
||||
mod tab;
|
||||
use tab::Tab;
|
||||
|
||||
/// Reduce disk usage by cache Bookmarks index in memory
|
||||
pub struct Memory {
|
||||
pub closed: Closed,
|
||||
pub tab: Tab,
|
||||
}
|
||||
|
||||
impl Default for Memory {
|
||||
|
|
@ -17,8 +17,6 @@ impl Memory {
|
|||
|
||||
/// Create new `Self`
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
closed: Closed::new(),
|
||||
}
|
||||
Self { tab: Tab::new() }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,17 +8,17 @@ pub struct Record {
|
|||
}
|
||||
|
||||
/// Recently closed tabs index
|
||||
pub struct Closed {
|
||||
pub struct Tab {
|
||||
index: RefCell<Vec<Record>>,
|
||||
}
|
||||
|
||||
impl Default for Closed {
|
||||
impl Default for Tab {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Closed {
|
||||
impl Tab {
|
||||
// Constructors
|
||||
|
||||
/// Create new `Self`
|
||||
Loading…
Add table
Add a link
Reference in a new issue