aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2022-07-07 13:08:53 +0900
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>2022-07-07 13:08:53 +0900
commit8b1d7bfbd4efedb8120ba3dccc46dfcd17ede640 (patch)
tree2bd99d6e49d9963857fccc32f4c4e55b311ed5fd
parent211d671fe8c9ef0f8ec87ab10aa151daa77527ef (diff)
downloadhinawa-rs-8b1d7bfbd4efedb8120ba3dccc46dfcd17ede640.tar.gz
hinawa: rename to FwNodeExtManual::config_rom() by convention of glib crate
Rust language has a convention for getter methods without `get` word and glib crate v0.15 follows to it. This commit follows to it as well. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
-rw-r--r--hinawa/src/fw_node.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/hinawa/src/fw_node.rs b/hinawa/src/fw_node.rs
index 9343d26..cda8898 100644
--- a/hinawa/src/fw_node.rs
+++ b/hinawa/src/fw_node.rs
@@ -2,11 +2,11 @@
use crate::*;
pub trait FwNodeExtManual {
- fn get_config_rom(&self) -> Result<&[u8], glib::Error>;
+ fn config_rom(&self) -> Result<&[u8], glib::Error>;
}
impl<O: IsA<FwNode>> FwNodeExtManual for O {
- fn get_config_rom(&self) -> Result<&[u8], glib::Error> {
+ fn config_rom(&self) -> Result<&[u8], glib::Error> {
unsafe {
let mut ptr = std::ptr::null_mut() as *const u8;
let mut len = 0 as usize;