mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2024-11-21 16:41:03 +00:00
rust: update to rustc 1.81.0
This commit is contained in:
parent
f15b76ac6f
commit
cb9361939c
3 changed files with 4 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
|||
variables:
|
||||
GST_RS_WIN_IMG_TAG: "2023-12-22.0"
|
||||
GST_RS_FDO_IMG_TAG: "2024-01-05.0"
|
||||
GST_RS_STABLE: "1.70.0"
|
||||
GST_RS_WIN_IMG_TAG: "2024-09-11.0"
|
||||
GST_RS_FDO_IMG_TAG: "2024-09-11.0"
|
||||
GST_RS_STABLE: "1.81.0"
|
||||
|
|
|
@ -15,7 +15,6 @@ use gtk::{
|
|||
PopoverMenu, ResponseType, Statusbar, Widget,
|
||||
};
|
||||
use log::error;
|
||||
use once_cell::unsync::OnceCell;
|
||||
use std::cell::{Cell, RefCell};
|
||||
use std::collections::HashMap;
|
||||
use std::fs::File;
|
||||
|
@ -40,7 +39,6 @@ pub struct GPSAppInner {
|
|||
pub current_graphtab: Cell<u32>,
|
||||
pub graphbook: RefCell<HashMap<u32, graphbook::GraphTab>>,
|
||||
pub builder: Builder,
|
||||
pub plugin_list_initialized: OnceCell<bool>,
|
||||
pub signal_handlers: RefCell<HashMap<String, SignalHandlerId>>,
|
||||
}
|
||||
|
||||
|
@ -100,7 +98,6 @@ impl GPSApp {
|
|||
current_graphtab: Cell::new(0),
|
||||
graphbook: RefCell::new(HashMap::new()),
|
||||
builder,
|
||||
plugin_list_initialized: OnceCell::new(),
|
||||
signal_handlers: RefCell::new(HashMap::new()),
|
||||
}));
|
||||
let settings = Settings::load_settings();
|
||||
|
|
|
@ -122,8 +122,7 @@ struct WriteAdapter {
|
|||
impl io::Write for WriteAdapter {
|
||||
// On write we forward each u8 of the buffer to the sender and return the length of the buffer
|
||||
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
|
||||
self.buffer
|
||||
.push_str(&String::from_utf8(buf.to_vec()).unwrap());
|
||||
self.buffer.push_str(core::str::from_utf8(buf).unwrap());
|
||||
if self.buffer.ends_with('\n') {
|
||||
self.buffer.pop();
|
||||
let _ = self.sender.try_send((LogType::App, self.buffer.clone()));
|
||||
|
|
Loading…
Reference in a new issue