mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
remove extra references
This commit is contained in:
parent
07ee9cba07
commit
2d8b603b54
@ -36,7 +36,7 @@ impl Status {
|
|||||||
/// Return `Self` reference to apply another functions in chain
|
/// Return `Self` reference to apply another functions in chain
|
||||||
pub fn set_title(&self, value: &str) -> &Self {
|
pub fn set_title(&self, value: &str) -> &Self {
|
||||||
self.gobject.set_title(value);
|
self.gobject.set_title(value);
|
||||||
&self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set new description for `Self`
|
/// Set new description for `Self`
|
||||||
@ -46,7 +46,7 @@ impl Status {
|
|||||||
/// Return `Self` reference to apply another functions in chain
|
/// Return `Self` reference to apply another functions in chain
|
||||||
pub fn set_description(&self, value: Option<&str>) -> &Self {
|
pub fn set_description(&self, value: Option<&str>) -> &Self {
|
||||||
self.gobject.set_description(value);
|
self.gobject.set_description(value);
|
||||||
&self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
// Getters
|
// Getters
|
||||||
|
@ -29,7 +29,7 @@ impl Gemini {
|
|||||||
// Init components
|
// Init components
|
||||||
let reader = Reader::new_rc(gemtext, base, action_tab_open, action_page_open);
|
let reader = Reader::new_rc(gemtext, base, action_tab_open, action_page_open);
|
||||||
|
|
||||||
let widget = Widget::new_rc(&reader.gobject());
|
let widget = Widget::new_rc(reader.gobject());
|
||||||
|
|
||||||
// Result
|
// Result
|
||||||
Self { reader, widget }
|
Self { reader, widget }
|
||||||
|
@ -186,7 +186,7 @@ impl Reader {
|
|||||||
buffer.insert_with_tags(
|
buffer.insert_with_tags(
|
||||||
&mut buffer.end_iter(),
|
&mut buffer.end_iter(),
|
||||||
format!("• {}", list.value).as_str(),
|
format!("• {}", list.value).as_str(),
|
||||||
&[&tag.list()],
|
&[tag.list()],
|
||||||
);
|
);
|
||||||
buffer.insert(&mut buffer.end_iter(), "\n");
|
buffer.insert(&mut buffer.end_iter(), "\n");
|
||||||
|
|
||||||
@ -200,7 +200,7 @@ impl Reader {
|
|||||||
buffer.insert_with_tags(
|
buffer.insert_with_tags(
|
||||||
&mut buffer.end_iter(),
|
&mut buffer.end_iter(),
|
||||||
quote.value.as_str(),
|
quote.value.as_str(),
|
||||||
&[&tag.quote()],
|
&[tag.quote()],
|
||||||
);
|
);
|
||||||
buffer.insert(&mut buffer.end_iter(), "\n");
|
buffer.insert(&mut buffer.end_iter(), "\n");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user