[librsvg/rustify-rsvg-convert: 39/78] rsvg-convert: simplify stdin code
- From: Sven Neumann <sneumann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/rustify-rsvg-convert: 39/78] rsvg-convert: simplify stdin code
- Date: Wed, 3 Feb 2021 10:18:30 +0000 (UTC)
commit 463676f198e1bf9f5bca31ae7d0c523de1e06ba6
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Jan 9 11:05:24 2021 +0100
rsvg-convert: simplify stdin code
src/bin/rsvg-convert/input.rs | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/src/bin/rsvg-convert/input.rs b/src/bin/rsvg-convert/input.rs
index 468dc4f3..2e014288 100644
--- a/src/bin/rsvg-convert/input.rs
+++ b/src/bin/rsvg-convert/input.rs
@@ -3,20 +3,13 @@
use core::ops::Deref;
use gio::FileExt;
use std::fmt;
-use std::os::unix::io::RawFd;
use std::path::PathBuf;
struct Stdin;
impl Stdin {
pub fn stream() -> gio::UnixInputStream {
- unsafe { gio::UnixInputStream::new(Self {}) }
- }
-}
-
-impl std::os::unix::io::IntoRawFd for Stdin {
- fn into_raw_fd(self) -> RawFd {
- 0 as RawFd
+ unsafe { gio::UnixInputStream::new(0) }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]