This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::cmp::Ordering; | |
#[derive(PartialEq, Eq)] | |
pub struct Rev<T: Ord + PartialOrd + Eq + PartialEq>(pub T); | |
impl<T: Ord + PartialOrd + Eq + PartialEq> PartialOrd for Rev<T> { | |
fn partial_cmp(&self, other: &Rev<T>) -> Option<Ordering> { | |
other.0.partial_cmp(&self.0) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if let Ok(val) = env::var("__SENTRY_RN_WRAP_XCODE_CALL") { | |
if &val == "1" { | |
return react_native_xcode::wrap_call(); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ include('myfile.txt') }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let here = env::current_dir()?; | |
let mut counts = HashMap::new(); | |
for dent_rv in fs::read_dir(here)? { | |
if let Some(ext) = dent_rv?.path().extension() { | |
*counts.entry(ext.to_string_lossy().to_string()).or_insert(0) += 1; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error[E0277]: the trait bound `std::io::Write + std::marker::Send: std::marker::Sized` is not satisfied | |
--> src/cli.rs:44:18 | |
| | |
44 | Box::new(SimpleLogger { | |
| ^^^^^^^^^^^^ the trait `std::marker::Sized` is not implemented for `std::io::Write + std::marker::Send` | |
| | |
= note: `std::io::Write + std::marker::Send` does not have a constant size known at compile-time | |
= note: required by `cli::SimpleLogger` | |
error[E0277]: the trait bound `std::io::Write + std::marker::Send: std::marker::Sized` is not satisfied |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::fmt; | |
use std::result::Result as StdResult; | |
use serde::{Serialize, Deserialize, de, ser}; | |
pub struct Addr(pub u64); | |
impl Into<u64> for Addr { | |
fn into(self) -> u64 { | |
self.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn with_file<X: ?Sized, T, F: FnOnce(&mut X) -> T>(&self, f: F) -> T { | |
if self.options.compress { | |
f(&mut *self.tempfile.as_ref().unwrap().borrow_mut() as &mut X) | |
} else { | |
f(&mut *self.writer.borrow_mut() as &mut X) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File "/Users/mitsuhiko/Development/jinja2/tests/conftest.py", line 17, in <module> | |
from jinja2 import loaders | |
File "/Users/mitsuhiko/Development/jinja2/jinja2/__init__.py", line 80, in <module> | |
_patch_async() | |
File "/Users/mitsuhiko/Development/jinja2/jinja2/__init__.py", line 76, in _patch_async | |
from jinja2.asyncsupport import patch_all | |
File "/Users/mitsuhiko/Development/jinja2/jinja2/asyncsupport.py", line 13, in <module> | |
import asyncio | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/__init__.py", line 49, in <module> | |
from .unix_events import * # pragma: no cover |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mitsuhiko@flow:/srv/bots/docbuilder-bot/repo$ /srv/bots/docbuilder-bot/venv/bin/flask-docbuilder build --config configs/flask.json | |
Traceback (most recent call last): | |
File "/srv/bots/docbuilder-bot/venv/bin/flask-docbuilder", line 9, in <module> | |
load_entry_point('Flask-Docbuilder==0.0.0', 'console_scripts', 'flask-docbuilder')() | |
File "/srv/bots/docbuilder-bot/venv/local/lib/python2.7/site-packages/click/core.py", line 572, in __call__ | |
return self.main(*args, **kwargs) | |
File "/srv/bots/docbuilder-bot/venv/local/lib/python2.7/site-packages/click/core.py", line 552, in main | |
rv = self.invoke(ctx) | |
File "/srv/bots/docbuilder-bot/venv/local/lib/python2.7/site-packages/click/core.py", line 890, in invoke | |
sub_ctx = self.handle_subcommand(ctx, args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/srv/bots/docbuilder-bot/repo/checkouts/werkzeug-0.10/.venv/local/lib/python2.7/site-packages/sphinx/cmdline.py", line 296, in main | |
app.build(opts.force_all, filenames) | |
File "/srv/bots/docbuilder-bot/repo/checkouts/werkzeug-0.10/.venv/local/lib/python2.7/site-packages/sphinx/application.py", line 333, in build | |
self.builder.build_update() | |
File "/srv/bots/docbuilder-bot/repo/checkouts/werkzeug-0.10/.venv/local/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 246, in build_update | |
self.build(['__all__'], to_build) | |
File "/srv/bots/docbuilder-bot/repo/checkouts/werkzeug-0.10/.venv/local/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 322, in build | |
self.write(docnames, list(updated_docnames), method) | |
File "/srv/bots/docbuilder-bot/repo/checkouts/werkzeug-0.10/.venv/local/lib/python2.7/site-packages/sphinx/builders/latex.py", line 130, in write |