158 |
/// Fails if queue is full or actor is disconnected
|
159 |
#[allow(clippy::result_unit_err)]
|
160 |
pub async fn do_send<M>(&self, message: M) -> Option<M::Result>
|
58 |
#[allow(clippy::result_unit_err)]
|
59 |
pub fn from_dbus_map<K: AsRef<str>, V: AsRef<str> + Into<Box<str>>>(
|
147 |
pub trait WriteToBuf {
|
148 |
#[allow(clippy::result_unit_err)]
|
149 |
fn write(&self, buf: &mut [u8]) -> Result<usize, ()>;
|
210 |
#[allow(clippy::result_unit_err)]
|
211 |
#[doc(hidden)]
|
151 |
pub trait Overseer {
|
152 |
#[allow(clippy::result_unit_err)]
|
153 |
fn oversee(
|
142 |
/// * second: [0, 60]
|
143 |
#[allow(clippy::result_unit_err)]
|
144 |
pub fn from_date_and_time(
|
177 |
/// Returns `Err` when this object is out of bounds
|
178 |
#[allow(clippy::result_unit_err)]
|
179 |
pub fn from_time(dt: OffsetDateTime) -> Result<DateTime, ()> {
|
138 |
/// ```
|
139 |
#[allow(clippy::wrong_self_convention, clippy::result_unit_err)]
|
140 |
fn to_result(self) -> Result<(), ()>;
|
165 |
/// ```
|
166 |
#[allow(clippy::result_unit_err)]
|
167 |
fn ok<T>(self, ok: T) -> Result<T, ()>;
|
203 |
/// ```
|
204 |
#[allow(clippy::result_unit_err)]
|
205 |
fn ok_with<F: FnOnce() -> T, T>(self, ok: F) -> Result<T, ()>;
|
267 |
/// ```
|
268 |
#[allow(clippy::result_unit_err)]
|
269 |
fn err_with<F: FnOnce() -> E, E>(self, err: F) -> Result<(), E>;
|
15 |
#[allow(clippy::result_unit_err)]
|
16 |
pub fn uname() -> Result<::libc::utsname, ()> {
|
39 |
#[allow(clippy::result_unit_err)]
|
40 |
#[inline]
|
253 |
/// Return the decoded value and how many bytes it consumed.
|
254 |
#[allow(clippy::result_unit_err)]
|
255 |
pub fn decode_shortu16_len(bytes: &[u8]) -> Result<(usize, usize), ()> {
|
47 |
#[allow(clippy::result_unit_err)]
|
48 |
fn orr_1(&self) -> Result<Self::ReturnType, ()>;
|
50 |
#[no_int_result]
|
51 |
#[allow(clippy::result_unit_err)]
|
52 |
fn orr_2(&self) -> Result<Self::ReturnType, ()> {
|
117 |
/// remotes. Any parse errors or warnings are send to the log.
|
118 |
#[allow(clippy::result_unit_err)]
|
119 |
pub fn parse<P: AsRef<Path>>(path: P) -> Result<Vec<Remote>, ()> {
|
1174 |
/// [`new_at_write_end`]: Self::new_at_write_end
|
1175 |
#[allow(clippy::result_unit_err)]
|
1176 |
pub fn new_at_pos(buf: Buf, pos: usize) -> Result<Self, ()>
|
1197 |
/// [`new_at_pos`]: Self::new_at_pos
|
1198 |
#[allow(clippy::result_unit_err)]
|
1199 |
pub fn new_at_pos_mut(mut buf: Buf, pos: usize) -> Result<Self, ()>
|
576 |
/// [`DefaultAnsCoder`]: stream::stack::DefaultAnsCoder
|
577 |
#[allow(clippy::result_unit_err)]
|
578 |
fn seek(&mut self, pos: Self::Position) -> Result<(), ()>;
|
2247 |
/// distribution
|
2248 |
#[allow(clippy::result_unit_err)]
|
2249 |
#[cfg(feature = "std")]
|
2364 |
/// [`from_floating_point_probabilities`]: #method.from_floating_point_probabilities
|
2365 |
#[allow(clippy::result_unit_err)]
|
2366 |
pub fn from_nonzero_fixed_point_probabilities<I>(
|
2443 |
/// distribution
|
2444 |
#[allow(clippy::result_unit_err)]
|
2445 |
pub fn from_symbols_and_floating_point_probabilities<F>(
|
2523 |
/// Self::from_symbols_and_floating_point_probabilities
|
2524 |
#[allow(clippy::result_unit_err)]
|
2525 |
pub fn from_symbols_and_nonzero_fixed_point_probabilities<S, P>(
|
2980 |
/// except that it constructs an [`EncoderModel`] rather than a [`DecoderModel`].
|
2981 |
#[allow(clippy::result_unit_err)]
|
2982 |
pub fn from_symbols_and_floating_point_probabilities<F>(
|
71 |
impl<Word: BitArray, State: BitArray> RangeCoderState<Word, State> {
|
72 |
#[allow(clippy::result_unit_err)]
|
73 |
pub fn new(lower: State, range: State) -> Result<Self, ()> {
|
294 |
/// TODO: there should also be a `decoder()` method that takes `&mut self`
|
295 |
#[allow(clippy::result_unit_err)]
|
296 |
pub fn into_decoder(self) -> Result<RangeDecoder<Word, State, Backend::IntoReadWords>, ()>
|
70 |
/// Update the instant at an marker value to a new instant
|
71 |
#[allow(clippy::result_unit_err)]
|
72 |
pub fn update_marker<F: FnOnce()>(
|
34 |
impl CskkRulesFfi {
|
35 |
#[allow(clippy::result_unit_err)]
|
36 |
pub fn new(rust_id: &str, rust_name: &str, rust_description: &str) -> Result<Self, CskkError> {
|
152 |
impl Response {
|
153 |
#[allow(clippy::result_unit_err)]
|
154 |
#[inline(never)]
|
26 |
///
|
27 |
#[allow(clippy::result_unit_err)]
|
28 |
pub fn preset(&mut self, reader: &mut BufReader<std::fs::File>) -> Result<usize, ()> {
|
106 |
///
|
107 |
#[allow(clippy::result_unit_err)]
|
108 |
pub fn preset_track(&mut self, reader: &mut BufReader<std::fs::File>) -> Result<usize, ()> {
|
135 |
///
|
136 |
#[allow(clippy::result_unit_err)]
|
137 |
pub fn read_d88_header(
|
208 |
///
|
209 |
#[allow(clippy::result_unit_err)]
|
210 |
pub fn get_sector(&self, track: usize, side: usize, sector: usize) -> Result<&Sector, ()> {
|
25 |
///
|
26 |
#[allow(clippy::result_unit_err)]
|
27 |
pub fn preset(
|
24 |
///
|
25 |
#[allow(clippy::result_unit_err)]
|
26 |
pub fn preset(
|
441 |
#[allow(clippy::result_unit_err)]
|
442 |
pub fn summary_check_len(&self) -> std::result::Result<(), ()> {
|
253 |
/// Return the decoded value and how many bytes it consumed.
|
254 |
#[allow(clippy::result_unit_err)]
|
255 |
pub fn decode_shortu16_len(bytes: &[u8]) -> Result<(usize, usize), ()> {
|
253 |
/// Return the decoded value and how many bytes it consumed.
|
254 |
#[allow(clippy::result_unit_err)]
|
255 |
pub fn decode_shortu16_len(bytes: &[u8]) -> Result<(usize, usize), ()> {
|
152 |
/// Returns Err(()) if the entity is locked. However, this does mark the entity as locking so data can not be read anymore
|
153 |
#[allow(clippy::result_unit_err)]
|
154 |
pub fn remove(&self, index: u32) -> Result<(), ()> {
|
180 |
/// Err(()) if the component is locked.
|
181 |
#[allow(clippy::result_unit_err)]
|
182 |
pub fn get_comp_mut<'comp, T: ComponentLookup<'comp>>(
|
221 |
/// Err(()) if the component is locked.
|
222 |
#[allow(clippy::result_unit_err)]
|
223 |
pub fn get_comp<'comp, T: ComponentLookup<'comp>>(&self, entity_index: u32) -> Result<Option<T::RefResponse>, ()> {
|
29 |
/// Create an instance of the version based on a byte slice
|
30 |
#[allow(clippy::result_unit_err)]
|
31 |
fn from_slice(data: &[u8]) -> Result<Self, ()>;
|
195 |
#[allow(clippy::result_unit_err)]
|
196 |
pub fn run(self) -> Result<(), ()> {
|
91 |
/// perform topological sort on a graph
|
92 |
#[allow(clippy::result_unit_err)]
|
93 |
pub fn tsort<T: Eq + Hash + Clone, U>(g: Graph<T, U>) -> Result<Graph<T, U>, TopoSortError> {
|
52 |
#[allow(clippy::result_unit_err)]
|
53 |
pub fn sorted(self) -> Result<Self, TopoSortError> {
|
57 |
#[allow(clippy::result_unit_err)]
|
58 |
pub fn sort(&mut self) -> Result<(), TopoSortError> {
|
105 |
#[allow(clippy::result_unit_err)]
|
106 |
pub fn sort(&self) -> Result<(), TopoSortError> {
|
54 |
#[allow(clippy::result_unit_err)]
|
55 |
pub fn new_aliased_result() -> Result<Self> {
|
51 |
/// Adds a version if it wasn't already present
|
52 |
#[allow(clippy::result_unit_err)]
|
53 |
pub fn add_version(&mut self, new: ObjectVersion) -> Result<(), ()> {
|
72 |
/// Deserialize a GDB register bytestream into `self`.
|
73 |
#[allow(clippy::result_unit_err)]
|
74 |
fn gdb_deserialize(&mut self, bytes: &[u8]) -> Result<(), ()>;
|
251 |
/// Return the decoded value and how many bytes it consumed.
|
252 |
#[allow(clippy::result_unit_err)]
|
253 |
pub fn decode_shortu16_len(bytes: &[u8]) -> Result<(usize, usize), ()> {
|
196 |
/// ```
|
197 |
#[allow(clippy::result_unit_err)]
|
198 |
pub fn move_mut<F>(&mut self, fun: F) -> Result<(), ()>
|
62 |
/// A reference to a fixed-size array isn't used as the input parameter type for convenience.
|
63 |
#[allow(clippy::result_unit_err)]
|
64 |
pub fn from_bytes(buf: &[u8]) -> Result<Self, ()> {
|
61 |
#[allow(clippy::result_unit_err)]
|
62 |
pub fn path_segments_mutable(&mut self) -> Result<PathSegmentsMut, ()> {
|
14 |
/// Create a `BufferGlyphs` from some font data
|
15 |
#[allow(clippy::result_unit_err)]
|
16 |
pub fn buffer_glyphs_from_bytes(font_data: &[u8]) -> Result<BufferGlyphs, ()> {
|
149 |
/// This operation wraps on overflow.
|
150 |
#[allow(clippy::result_unit_err)]
|
151 |
pub fn increment(&self, value: u64, count: u32) -> Result<(), Error> {
|
166 |
/// This operation wraps on overflow.
|
167 |
#[allow(clippy::result_unit_err)]
|
168 |
pub fn decrement(&self, value: u64, count: u32) -> Result<(), Error> {
|
310 |
/// `Histogram`s.
|
311 |
#[allow(clippy::result_unit_err)]
|
312 |
pub fn merge(&self, other: &Self) -> Result<(), Error> {
|
876 |
/// See the [`png` module docs](crate::png) for guidance.
|
877 |
#[allow(clippy::result_unit_err)]
|
878 |
pub fn unfilter_decompressed_data<F>(
|
10 |
/// Returns `Err` if the signature is bad, otherwise the 33-byte compressed pubkey.
|
11 |
#[allow(clippy::result_unit_err)]
|
12 |
pub fn ecdsa_recover(&self, sig: &[u8; 65], msg: &[u8; 32]) -> Result<[u8; 33], ()> {
|
98 |
#[allow(clippy::result_unit_err)]
|
99 |
#[allow(clippy::missing_errors_doc)]
|
102 |
/// * Global Platform GPC_SPE_055 3.10
|
103 |
#[allow(clippy::result_unit_err)]
|
104 |
pub fn extend_from_command<const T: usize>(
|
210 |
#[allow(clippy::result_unit_err)]
|
211 |
pub fn read_options_from_optional_config<P: AsRef<Path> + std::fmt::Debug>(
|
324 |
#[allow(clippy::result_unit_err)]
|
325 |
pub fn add_root_certificate_filepath(self, ca_path: &str) -> Result<Self, ()> {
|
23 |
#[allow(clippy::result_unit_err)]
|
24 |
pub fn read_tokens() -> Result<BTreeMap<String, String>, ()> {
|
70 |
#[allow(clippy::result_unit_err)]
|
71 |
pub fn write_tokens(tokens: &BTreeMap<String, String>) -> Result<(), ()> {
|
39 |
/// Returns a unit error if we could not parse the buffer into time data.
|
40 |
#[allow(clippy::result_unit_err)]
|
41 |
pub fn parse_latency_info(buf: &[u8]) -> Result<std::time::Duration, ()> {
|
202 |
/// The returned result indicates whether everything went fine.
|
203 |
#[allow(clippy::result_unit_err)]
|
204 |
pub fn process_document<P: AsRef<Path>>(
|
250 |
/// Extend handler with `error` given `res = Err(error)`.
|
251 |
#[allow(clippy::result_unit_err)]
|
252 |
pub fn extend_if_error<T>(&self, res: Result<T, LeoError>) -> Result<T, ()> {
|
2241 |
#[must_use]
|
2242 |
#[allow(clippy::result_unit_err)]
|
2243 |
pub fn asan_is_interesting_instruction(
|
67 |
/// otherwise unreachable.
|
68 |
#[allow(clippy::result_unit_err)]
|
69 |
pub fn remove(&mut self, addr: &Multiaddr) -> Result<(), ()> {
|
780 |
/// [`ConnectionHandlerEvent::Close`].
|
781 |
#[allow(clippy::result_unit_err)]
|
782 |
pub fn disconnect_peer_id(&mut self, peer_id: PeerId) -> Result<(), ()> {
|
45 |
#[allow(clippy::result_unit_err)]
|
46 |
pub trait SimIf {
|
83 |
/// Replaces whatever value of type `E` in `Result<A, E>` with an unit.
|
84 |
#[allow(clippy::result_unit_err)]
|
85 |
fn void_err(self) -> Result<A, ()>
|
266 |
#[allow(clippy::result_unit_err)]
|
267 |
pub unsafe fn reset_callback_registry() -> Result<(), ()> {
|
380 |
#[allow(clippy::result_unit_err)]
|
381 |
#[inline(always)]
|
763 |
#[allow(clippy::module_name_repetitions)]
|
764 |
#[allow(clippy::result_unit_err)]
|
765 |
#[inline(always)] // Proxy function.
|
404 |
// release to remove this clippy warning
|
405 |
#[allow(clippy::result_unit_err)]
|
406 |
pub fn allocate_first_fit(&mut self, layout: Layout) -> Result<(NonNull<u8>, Layout), ()> {
|
193 |
// release to remove this clippy warning
|
194 |
#[allow(clippy::result_unit_err)]
|
195 |
pub fn allocate_first_fit(&mut self, layout: Layout) -> Result<NonNull<u8>, ()> {
|
61 |
#[allow(clippy::result_unit_err)]
|
62 |
pub fn pair_list_to_string(&self) -> Result<String, ()> {
|
48 |
/// enough, an error will be returned.
|
49 |
#[allow(clippy::result_unit_err)]
|
50 |
pub fn read_register(register_id: u64, buf: &mut [u8]) -> Result<usize, ()> {
|
567 |
#[allow(clippy::result_unit_err)]
|
568 |
pub fn parse_duration(source: &str) -> std::result::Result<Duration, ()> {
|
586 |
#[allow(clippy::result_unit_err)]
|
587 |
pub fn parse_opt_duration(source: &str) -> std::result::Result<Option<Duration>, ()> {
|
596 |
#[allow(clippy::result_unit_err)]
|
597 |
pub fn parse_opt_u8(source: &str) -> std::result::Result<Option<u8>, ()> {
|
610 |
#[allow(clippy::result_unit_err)]
|
611 |
pub fn parse_compression(source: &str) -> std::result::Result<bool, ()> {
|
619 |
#[allow(clippy::result_unit_err)]
|
620 |
pub fn parse_hosts(source: &str) -> std::result::Result<Vec<Url>, ()> {
|
11 |
/// This is an eager, allocating version of [the root `filters`](crate::filters).
|
12 |
#[allow(clippy::result_unit_err)]
|
13 |
pub fn filters(directives: &str) -> Result<Vec<Filter<'_>>, ParseError> {
|
211 |
/// Allocates a new Connection ID and secret key.
|
212 |
#[allow(clippy::result_unit_err)]
|
213 |
pub fn alloc(&self) -> Result<(ConnId, ConnSecretKey), ()> {
|
19 |
/// spawns a new task
|
20 |
#[allow(clippy::result_unit_err)]
|
21 |
fn spawn(&self, f: Pin<Box<dyn Future<Output = ()> + Send>>) -> Result<(), ()>;
|
35 |
#[allow(clippy::result_unit_err)]
|
36 |
fn commit(self) -> Result<(), ()>;
|
39 |
pub trait BenchInserter {
|
40 |
#[allow(clippy::result_unit_err)]
|
41 |
fn insert(&mut self, key: &[u8], value: &[u8]) -> Result<(), ()>;
|
43 |
#[allow(clippy::result_unit_err)]
|
44 |
fn remove(&mut self, key: &[u8]) -> Result<(), ()>;
|
147 |
/// [Service compatiblity]: ./index.html#service_compatibility
|
148 |
#[allow(clippy::result_unit_err)]
|
149 |
pub fn cast_service<U: ?Sized + Service>(self) -> Result<ServiceToImport<U>, ()> {
|
59 |
pub trait SerdeFormat {
|
60 |
#[allow(clippy::result_unit_err)]
|
61 |
fn to_vec<S: serde::Serialize>(s: &S) -> Result<Vec<u8>, ()>;
|
62 |
#[allow(clippy::result_unit_err)]
|
63 |
fn from_slice<D: serde::de::DeserializeOwned>(data: &[u8]) -> Result<D, ()>;
|
15 |
#[allow(clippy::result_unit_err)]
|
16 |
pub fn uname() -> Result<::libc::utsname, ()> {
|
39 |
#[allow(clippy::result_unit_err)]
|
40 |
#[inline]
|
29 |
/// Returns `Ok` if it exists, `Err` if not.
|
30 |
#[allow(clippy::result_unit_err)]
|
31 |
fn try_get<KeyArg>(key: KeyArg) -> Result<V, ()>;
|
103 |
/// Returns `Ok` if it exists, `Err` if not.
|
104 |
#[allow(clippy::result_unit_err)]
|
105 |
fn try_get<KArg1, KArg2>(k1: KArg1, k2: KArg2) -> Result<V, ()>;
|
129 |
/// ```
|
130 |
#[allow(clippy::result_unit_err)]
|
131 |
fn init(api: Api<'rofi>) -> Result<Self, ()>;
|
1814 |
#[inline]
|
1815 |
#[allow(clippy::result_unit_err)]
|
1816 |
pub fn assign_f32(&mut self, val: f32) -> Result<(), ()> {
|
1835 |
#[inline]
|
1836 |
#[allow(clippy::result_unit_err)]
|
1837 |
pub fn assign_f64(&mut self, val: f64) -> Result<(), ()> {
|
3575 |
#[inline]
|
3576 |
#[allow(clippy::result_unit_err)]
|
3577 |
pub fn invert_mut(&mut self, modulo: &Self) -> Result<(), ()> {
|
3696 |
#[inline]
|
3697 |
#[allow(clippy::result_unit_err)]
|
3698 |
pub fn pow_mod_mut(&mut self, exponent: &Self, modulo: &Self) -> Result<(), ()> {
|
615 |
#[inline]
|
616 |
#[allow(clippy::result_unit_err)]
|
617 |
pub fn assign_f32(&mut self, val: f32) -> Result<(), ()> {
|
636 |
#[inline]
|
637 |
#[allow(clippy::result_unit_err)]
|
638 |
pub fn assign_f64(&mut self, val: f64) -> Result<(), ()> {
|
351 |
/// Returns [`Err`] if there was an error reaching dependency resolution.
|
352 |
#[allow(clippy::result_unit_err)]
|
353 |
pub fn resolve(&self, fix_broken: bool) -> Result<(), Exception> {
|
255 |
/// Return the decoded value and how many bytes it consumed.
|
256 |
#[allow(clippy::result_unit_err)]
|
257 |
pub fn decode_shortu16_len(bytes: &[u8]) -> Result<(usize, usize), ()> {
|
38 |
#[allow(clippy::result_unit_err)]
|
39 |
#[inline]
|
60 |
#[allow(clippy::result_unit_err)]
|
61 |
pub fn peek_token(&self) -> Result<Rc<TokenType>, ()> {
|
255 |
/// Return the decoded value and how many bytes it consumed.
|
256 |
#[allow(clippy::result_unit_err)]
|
257 |
pub fn decode_shortu16_len(bytes: &[u8]) -> Result<(usize, usize), ()> {
|
16 |
// as error.
|
17 |
#[allow(clippy::result_unit_err)]
|
18 |
pub mod sema;
|
726 |
#[allow(clippy::result_unit_err)] // workaround https://github.com/rust-lang/rust-clippy/issues/6546
|
727 |
/// Keep only the quads matching the given matchers.
|
284 |
#[allow(clippy::result_unit_err)]
|
285 |
#[cfg(not(feature = "concurrent"))]
|
291 |
#[allow(clippy::result_unit_err)]
|
292 |
#[cfg(feature = "concurrent")]
|
900 |
///```
|
901 |
#[allow(clippy::result_unit_err)]
|
902 |
pub unsafe fn with_node_state<T, R, F: FnMut(*mut T) -> R>(
|
164 |
/// ```
|
165 |
#[allow(clippy::result_unit_err)]
|
166 |
pub fn from_bytes<B1, B2>(header: B1, value: B2) -> Result<Header, ()>
|
659 |
/// interchange pairs.
|
660 |
#[allow(clippy::result_unit_err)]
|
661 |
pub fn try_new_client<S: crate::platform::Syscall>(&mut self, client_id: &str, syscall: S)
|
674 |
/// single-app runners.
|
675 |
#[allow(clippy::result_unit_err)]
|
676 |
pub fn try_as_new_client(&mut self, client_id: &str)
|
1583 |
/// Return `Err(())` if this URL is cannot-be-a-base.
|
1584 |
#[allow(clippy::result_unit_err)]
|
1585 |
pub fn path_segments_mut(&mut self) -> Result<PathSegmentsMut<'_>, ()> {
|
1667 |
/// ```
|
1668 |
#[allow(clippy::result_unit_err)]
|
1669 |
pub fn set_port(&mut self, mut port: Option<u16>) -> Result<(), ()> {
|
1945 |
///
|
1946 |
#[allow(clippy::result_unit_err)]
|
1947 |
pub fn set_ip_host(&mut self, address: IpAddr) -> Result<(), ()> {
|
1985 |
/// ```
|
1986 |
#[allow(clippy::result_unit_err)]
|
1987 |
pub fn set_password(&mut self, password: Option<&str>) -> Result<(), ()> {
|
2078 |
/// ```
|
2079 |
#[allow(clippy::result_unit_err)]
|
2080 |
pub fn set_username(&mut self, username: &str) -> Result<(), ()> {
|
101 |
/// Setter for https://url.spec.whatwg.org/#dom-url-protocol
|
102 |
#[allow(clippy::result_unit_err)]
|
103 |
pub fn set_protocol(url: &mut Url, mut new_protocol: &str) -> Result<(), ()> {
|
118 |
/// Setter for https://url.spec.whatwg.org/#dom-url-username
|
119 |
#[allow(clippy::result_unit_err)]
|
120 |
pub fn set_username(url: &mut Url, new_username: &str) -> Result<(), ()> {
|
130 |
/// Setter for https://url.spec.whatwg.org/#dom-url-password
|
131 |
#[allow(clippy::result_unit_err)]
|
132 |
pub fn set_password(url: &mut Url, new_password: &str) -> Result<(), ()> {
|
146 |
/// Setter for https://url.spec.whatwg.org/#dom-url-host
|
147 |
#[allow(clippy::result_unit_err)]
|
148 |
pub fn set_host(url: &mut Url, new_host: &str) -> Result<(), ()> {
|
199 |
/// Setter for https://url.spec.whatwg.org/#dom-url-hostname
|
200 |
#[allow(clippy::result_unit_err)]
|
201 |
pub fn set_hostname(url: &mut Url, new_hostname: &str) -> Result<(), ()> {
|
144 |
#[allow(clippy::result_unit_err)]
|
145 |
#[inline(always)]
|
166 |
#[allow(clippy::result_unit_err)]
|
167 |
#[inline(always)]
|
188 |
#[allow(clippy::result_unit_err)]
|
189 |
#[inline(always)]
|
253 |
/// Return the decoded value and how many bytes it consumed.
|
254 |
#[allow(clippy::result_unit_err)]
|
255 |
pub fn decode_shortu16_len(bytes: &[u8]) -> Result<(usize, usize), ()> {
|
61 |
// -- The lint is allowed because fixing it would be a breaking change --
|
62 |
#[allow(clippy::result_unit_err)]
|
63 |
fn from_raw(msg: wire::Message, map: &mut Self::Map) -> Result<Self, ()>;
|
72 |
// -- The lint is allowed because fixing it would be a breaking change --
|
73 |
#[allow(clippy::result_unit_err)]
|
74 |
unsafe fn from_raw_c(
|
155 |
// -- The lint is allowed because fixing it would be a breaking change --
|
156 |
#[allow(clippy::result_unit_err)]
|
157 |
pub fn insert_at(&mut self, id: u32, object: Object<Meta>) -> Result<(), ()> {
|
178 |
// -- The lint is allowed because fixing it would be a breaking change --
|
179 |
#[allow(clippy::result_unit_err)]
|
180 |
pub fn with<T, F: FnOnce(&mut Object<Meta>) -> T>(&mut self, id: u32, f: F) -> Result<T, ()> {
|
488 |
#[allow(clippy::result_unit_err)]
|
489 |
pub fn bytes_to_point(&self, b: &[u8]) -> Result<Point, ()> {
|
241 |
// Square root of a field element
|
242 |
#[allow(clippy::result_unit_err)]
|
243 |
pub fn sqrt(&self, g: &FieldElem) -> Result<FieldElem, ()> {
|
68 |
#[allow(clippy::result_unit_err)]
|
69 |
pub fn der_decode_raw(buf: &[u8]) -> Result<Signature, ()> {
|
324 |
#[allow(clippy::result_unit_err)]
|
325 |
pub fn load_pubkey(&self, buf: &[u8]) -> Result<Point, ()> {
|
333 |
#[allow(clippy::result_unit_err)]
|
334 |
pub fn load_seckey(&self, buf: &[u8]) -> Result<BigUint, ()> {
|
226 |
/// Needs to be called **after** submitting any encoder used in the current frame.
|
227 |
#[allow(clippy::result_unit_err)]
|
228 |
pub fn end_frame(&mut self) -> Result<(), ()> {
|
116 |
/// It can fail if, after the pointer has been loaded but before it is used, it is swapped out in another thread and destroyed.
|
117 |
#[allow(clippy::result_unit_err)]
|
118 |
pub fn try_load(&self, order: Ordering) -> Result<Xarc<T>, ()> {
|
44 |
/// May panic if the locale contain inner null characters.
|
45 |
#[allow(clippy::result_unit_err, clippy::missing_errors_doc)]
|
46 |
pub fn new_from_locale(
|
69 |
#[allow(
|
70 |
clippy::result_unit_err,
|
71 |
clippy::missing_panics_doc,
|
165 |
/// ```
|
166 |
#[allow(clippy::result_unit_err)]
|
167 |
pub fn from_bytes<B1, B2>(header: B1, value: B2) -> Result<Header, ()>
|
135 |
/// * second: [0, 60]
|
136 |
#[allow(clippy::result_unit_err)]
|
137 |
pub fn from_date_and_time(
|
170 |
/// Returns `Err` when this object is out of bounds
|
171 |
#[allow(clippy::result_unit_err)]
|
172 |
pub fn from_time(dt: OffsetDateTime) -> Result<DateTime, ()> {
|
123 |
map_err_ignore,
|
124 |
result_unit_err,
|
125 |
wildcard_imports,
|
1 |
#![deny(rust_2018_idioms)]
|
2 |
#![allow(clippy::result_unit_err)]
|
1 |
// FIXME: Fix and remove eventally
|
2 |
#![allow(clippy::result_unit_err)]
|
1 |
#![allow(clippy::from_over_into)]
|
2 |
#![allow(clippy::result_unit_err)]
|
3 |
#![allow(dead_code)]
|
19 |
#![allow(non_upper_case_globals, clippy::result_unit_err)]
|
9 |
clippy::needless_lifetimes,
|
10 |
clippy::result_unit_err
|
11 |
)]
|
4 |
// TODO: Remove this at later point can create custom errors.
|
5 |
#![allow(clippy::result_unit_err)]
|
3 |
// TODO: Remove this at later point can create custom errors.
|
4 |
#![allow(clippy::result_unit_err)]
|
76 |
#![warn(missing_docs)]
|
77 |
#![allow(clippy::result_unit_err)]
|
6 |
#![allow(missing_docs)]
|
7 |
#![allow(clippy::result_unit_err)]
|
3 |
//! `Context` is used for type inference and type checking.
|
4 |
#![allow(clippy::result_unit_err)]
|
5 |
pub mod cache;
|
56 |
)]
|
57 |
#![allow(clippy::result_unit_err)]
|
58 |
#![cfg_attr(not(feature = "std"), no_std)]
|
3 |
#![allow(clippy::missing_safety_doc)]
|
4 |
#![allow(clippy::result_unit_err)]
|
6 |
#![allow(clippy::missing_safety_doc)]
|
7 |
#![allow(clippy::result_unit_err)]
|
92 |
#![allow(
|
93 |
clippy::result_unit_err,
|
94 |
clippy::too_many_arguments,
|
1 |
#![allow(clippy::result_unit_err)]
|
18 |
#![allow(clippy::needless_lifetimes)]
|
19 |
#![allow(clippy::result_unit_err)]
|
1 |
#![allow(clippy::result_unit_err)]
|
1 |
#![allow(clippy::result_unit_err)]
|
1 |
#![allow(clippy::result_unit_err)]
|
151 |
#![deny(missing_debug_implementations)]
|
152 |
#![allow(clippy::result_unit_err)]
|
1 |
#![allow(clippy::blocks_in_if_conditions)]
|
2 |
#![allow(clippy::result_unit_err)]
|
25 |
#![allow(clippy::from_over_into)]
|
26 |
#![allow(clippy::result_unit_err)]
|
1 |
#![allow(clippy::result_unit_err)]
|
6 |
// Our new methods return Result<Self, _> types
|
7 |
#![allow(clippy::new_ret_no_self, clippy::result_unit_err)]
|
8 |
/// Bindings to the C interface
|
1 |
#![allow(clippy::result_unit_err)]
|
9 |
)]
|
10 |
#![allow(clippy::result_unit_err)]
|
66 |
// Unit errors are converted to other types by callers.
|
67 |
#![allow(clippy::result_unit_err)]
|
68 |
// Clippy is wrong.
|
1 |
#![allow(clippy::result_unit_err)]
|
70 |
#![allow(clippy::deprecated_semver)] // `#[deprecated(since="Sciter 4.4.3.24")]` is not a semver format.
|
71 |
#![allow(clippy::result_unit_err)] // Sciter returns BOOL, but `Result<(), ()>` is more strict even without error description.
|
72 |
// #![allow(clippy::cast_ptr_alignment)] // 0.0.195 only
|
1 |
#![no_std]
|
2 |
#![allow(clippy::result_unit_err)]
|
3 |
#![warn(missing_docs)]
|
131 |
new_without_default,
|
132 |
result_unit_err,
|
133 |
wildcard_imports,
|
10 |
clippy::redundant_field_names,
|
11 |
clippy::result_unit_err,
|
12 |
clippy::should_implement_trait,
|
63 |
// Remove this after https://github.com/sodiumoxide/sodiumoxide/issues/221 is done
|
64 |
#![allow(clippy::result_unit_err)]
|
182 |
#![warn(missing_docs)]
|
183 |
#![allow(clippy::result_unit_err)]
|
2 |
#![allow(panics)]
|
3 |
#![allow(clippy::result_unit_err)]
|
3 |
#![deny(unused)]
|
4 |
#![allow(clippy::result_unit_err)]
|
2 |
// TODO: Use real errors
|
3 |
#![allow(clippy::result_unit_err)]
|
2 |
// TODO: Use real errors
|
3 |
#![allow(clippy::result_unit_err)]
|
2 |
#![warn(clippy::pedantic)]
|
3 |
#![allow(clippy::result_unit_err)]
|
4 |
#![allow(
|
1 |
#![allow(clippy::result_unit_err)]
|
2 |
#[cfg(test)]
|
8 |
// Temporary until we have addressed all Result<T, ()> cases.
|
9 |
#![allow(clippy::result_unit_err)]
|
6 |
clippy::too_many_arguments,
|
7 |
clippy::result_unit_err,
|
8 |
deprecated
|
9 |
// Temporary until we have addressed all Result<T, ()> cases.
|
10 |
#![allow(clippy::result_unit_err)]
|
9 |
// Temporary until we have addressed all Result<T, ()> cases.
|
10 |
#![allow(clippy::result_unit_err)]
|