mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2024-11-22 00:50:59 +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:
|
variables:
|
||||||
GST_RS_WIN_IMG_TAG: "2023-12-22.0"
|
GST_RS_WIN_IMG_TAG: "2024-09-11.0"
|
||||||
GST_RS_FDO_IMG_TAG: "2024-01-05.0"
|
GST_RS_FDO_IMG_TAG: "2024-09-11.0"
|
||||||
GST_RS_STABLE: "1.70.0"
|
GST_RS_STABLE: "1.81.0"
|
||||||
|
|
|
@ -15,7 +15,6 @@ use gtk::{
|
||||||
PopoverMenu, ResponseType, Statusbar, Widget,
|
PopoverMenu, ResponseType, Statusbar, Widget,
|
||||||
};
|
};
|
||||||
use log::error;
|
use log::error;
|
||||||
use once_cell::unsync::OnceCell;
|
|
||||||
use std::cell::{Cell, RefCell};
|
use std::cell::{Cell, RefCell};
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
|
@ -40,7 +39,6 @@ pub struct GPSAppInner {
|
||||||
pub current_graphtab: Cell<u32>,
|
pub current_graphtab: Cell<u32>,
|
||||||
pub graphbook: RefCell<HashMap<u32, graphbook::GraphTab>>,
|
pub graphbook: RefCell<HashMap<u32, graphbook::GraphTab>>,
|
||||||
pub builder: Builder,
|
pub builder: Builder,
|
||||||
pub plugin_list_initialized: OnceCell<bool>,
|
|
||||||
pub signal_handlers: RefCell<HashMap<String, SignalHandlerId>>,
|
pub signal_handlers: RefCell<HashMap<String, SignalHandlerId>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,7 +98,6 @@ impl GPSApp {
|
||||||
current_graphtab: Cell::new(0),
|
current_graphtab: Cell::new(0),
|
||||||
graphbook: RefCell::new(HashMap::new()),
|
graphbook: RefCell::new(HashMap::new()),
|
||||||
builder,
|
builder,
|
||||||
plugin_list_initialized: OnceCell::new(),
|
|
||||||
signal_handlers: RefCell::new(HashMap::new()),
|
signal_handlers: RefCell::new(HashMap::new()),
|
||||||
}));
|
}));
|
||||||
let settings = Settings::load_settings();
|
let settings = Settings::load_settings();
|
||||||
|
|
|
@ -122,8 +122,7 @@ struct WriteAdapter {
|
||||||
impl io::Write for 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
|
// 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> {
|
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
|
||||||
self.buffer
|
self.buffer.push_str(core::str::from_utf8(buf).unwrap());
|
||||||
.push_str(&String::from_utf8(buf.to_vec()).unwrap());
|
|
||||||
if self.buffer.ends_with('\n') {
|
if self.buffer.ends_with('\n') {
|
||||||
self.buffer.pop();
|
self.buffer.pop();
|
||||||
let _ = self.sender.try_send((LogType::App, self.buffer.clone()));
|
let _ = self.sender.try_send((LogType::App, self.buffer.clone()));
|
||||||
|
|
Loading…
Reference in a new issue